mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-30 03:34:27 +01:00
Got the tests running
This commit is contained in:
@@ -17,6 +17,7 @@ DEFINES = -D UNITY_OUTPUT_CHAR=putcharSpy
|
|||||||
DEFINES += -D UNITY_OUTPUT_CHAR_HEADER_DECLARATION=putcharSpy\(int\)
|
DEFINES += -D UNITY_OUTPUT_CHAR_HEADER_DECLARATION=putcharSpy\(int\)
|
||||||
DEFINES += -D UNITY_OUTPUT_FLUSH=flushSpy
|
DEFINES += -D UNITY_OUTPUT_FLUSH=flushSpy
|
||||||
DEFINES += -D UNITY_OUTPUT_FLUSH_HEADER_DECLARATION=flushSpy\(void\)
|
DEFINES += -D UNITY_OUTPUT_FLUSH_HEADER_DECLARATION=flushSpy\(void\)
|
||||||
|
DEFINES += -D USING_FLUSH_SPY
|
||||||
DEFINES += $(UNITY_SUPPORT_64) $(UNITY_INCLUDE_DOUBLE)
|
DEFINES += $(UNITY_SUPPORT_64) $(UNITY_INCLUDE_DOUBLE)
|
||||||
UNITY_SUPPORT_64 = -D UNITY_SUPPORT_64
|
UNITY_SUPPORT_64 = -D UNITY_SUPPORT_64
|
||||||
UNITY_INCLUDE_DOUBLE = -D UNITY_INCLUDE_DOUBLE
|
UNITY_INCLUDE_DOUBLE = -D UNITY_INCLUDE_DOUBLE
|
||||||
|
|||||||
@@ -3357,13 +3357,17 @@ void testFailureCountIncrementsAndIsReturnedAtEnd(void)
|
|||||||
UNITY_UINT savedFailures = Unity.TestFailures;
|
UNITY_UINT savedFailures = Unity.TestFailures;
|
||||||
Unity.CurrentTestFailed = 1;
|
Unity.CurrentTestFailed = 1;
|
||||||
startPutcharSpy(); // Suppress output
|
startPutcharSpy(); // Suppress output
|
||||||
|
#ifdef USING_FLUSH_SPY
|
||||||
startFlushSpy();
|
startFlushSpy();
|
||||||
TEST_ASSERT_EQUAL(0, getFlushSpyCalls());
|
TEST_ASSERT_EQUAL(0, getFlushSpyCalls());
|
||||||
|
#endif
|
||||||
UnityConcludeTest();
|
UnityConcludeTest();
|
||||||
endPutcharSpy();
|
endPutcharSpy();
|
||||||
TEST_ASSERT_EQUAL(savedFailures + 1, Unity.TestFailures);
|
TEST_ASSERT_EQUAL(savedFailures + 1, Unity.TestFailures);
|
||||||
|
#ifdef USING_FLUSH_SPY
|
||||||
TEST_ASSERT_EQUAL(1, getFlushSpyCalls());
|
TEST_ASSERT_EQUAL(1, getFlushSpyCalls());
|
||||||
endFlushSpy();
|
endFlushSpy();
|
||||||
|
#endif
|
||||||
|
|
||||||
startPutcharSpy(); // Suppress output
|
startPutcharSpy(); // Suppress output
|
||||||
int failures = UnityEnd();
|
int failures = UnityEnd();
|
||||||
|
|||||||
Reference in New Issue
Block a user