1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-23 00:15:58 +01:00

Fix temperamental test in core test suite.

This commit is contained in:
Mark VanderVoord
2024-03-09 19:26:38 -05:00
parent b512a1c184
commit e3457a85f4

View File

@@ -296,9 +296,9 @@ void testFailureCountIncrementsAndIsReturnedAtEnd(void)
Unity.CurrentTestFailed = 1; Unity.CurrentTestFailed = 1;
startPutcharSpy(); /* Suppress output */ startPutcharSpy(); /* Suppress output */
startFlushSpy(); startFlushSpy();
TEST_ASSERT_EQUAL(0, getFlushSpyCalls());
UnityConcludeTest(); UnityConcludeTest();
endPutcharSpy(); endPutcharSpy();
TEST_ASSERT_EQUAL(0, getFlushSpyCalls());
TEST_ASSERT_EQUAL(savedFailures + 1, Unity.TestFailures); TEST_ASSERT_EQUAL(savedFailures + 1, Unity.TestFailures);
#if defined(UNITY_OUTPUT_FLUSH) && defined(UNITY_OUTPUT_FLUSH_HEADER_DECLARATION) #if defined(UNITY_OUTPUT_FLUSH) && defined(UNITY_OUTPUT_FLUSH_HEADER_DECLARATION)
TEST_ASSERT_EQUAL(1, getFlushSpyCalls()); TEST_ASSERT_EQUAL(1, getFlushSpyCalls());