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;
startPutcharSpy(); /* Suppress output */
startFlushSpy();
TEST_ASSERT_EQUAL(0, getFlushSpyCalls());
UnityConcludeTest();
endPutcharSpy();
TEST_ASSERT_EQUAL(0, getFlushSpyCalls());
TEST_ASSERT_EQUAL(savedFailures + 1, Unity.TestFailures);
#if defined(UNITY_OUTPUT_FLUSH) && defined(UNITY_OUTPUT_FLUSH_HEADER_DECLARATION)
TEST_ASSERT_EQUAL(1, getFlushSpyCalls());