Skip to content

Commit 3cbe499

Browse files
committed
Don't call assertions until after we've concluded test framework tinkering in core test (#718)
1 parent c444b63 commit 3cbe499

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/tests/test_unity_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,8 @@ void testFailureCountIncrementsAndIsReturnedAtEnd(void)
300300
startFlushSpy();
301301
savedGetFlushSpyCalls = getFlushSpyCalls();
302302
UnityConcludeTest();
303-
TEST_ASSERT_EQUAL(0, savedGetFlushSpyCalls);
304303
endPutcharSpy();
304+
TEST_ASSERT_EQUAL(0, savedGetFlushSpyCalls);
305305
TEST_ASSERT_EQUAL(savedFailures + 1, Unity.TestFailures);
306306
#if defined(UNITY_OUTPUT_FLUSH) && defined(UNITY_OUTPUT_FLUSH_HEADER_DECLARATION)
307307
TEST_ASSERT_EQUAL(1, getFlushSpyCalls());

0 commit comments

Comments
 (0)