1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-25 17:31:36 +01:00

Refactor all yaml files for self-tests to fit Ceedling format for wider reuse.

Fix mistake in unity selftest without output spy running.
Namespace self-tests for consistency across ThrowTheSwitch projects (like being able to test:all)
Reduce clutter of NAMED self-tests in task list.
This commit is contained in:
mvandervoord
2019-12-13 20:38:42 -05:00
parent e3132cdddd
commit 3f71d10b2e
20 changed files with 1229 additions and 1235 deletions

View File

@@ -6029,6 +6029,8 @@ void putcharSpy(int c)
putcharSpyBuffer[indexSpyBuffer++] = (char)c;
} else
putchar((char)c);
#else
(void)c;
#endif
}
@@ -6047,6 +6049,9 @@ void flushSpy(void)
void testFailureCountIncrementsAndIsReturnedAtEnd(void)
{
#ifndef USING_OUTPUT_SPY
TEST_IGNORE();
#else
UNITY_UINT savedFailures = Unity.TestFailures;
Unity.CurrentTestFailed = 1;
startPutcharSpy(); /* Suppress output */
@@ -6067,6 +6072,7 @@ void testFailureCountIncrementsAndIsReturnedAtEnd(void)
Unity.TestFailures--;
endPutcharSpy();
TEST_ASSERT_EQUAL(savedFailures + 1, failures);
#endif
}
void testCstringsEscapeSequence(void)