mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-23 08:25:58 +01:00
Fix temperamental test in core test suite.
This commit is contained in:
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user