Skip to content

Commit

Permalink
Don't call assertions until after we've concluded test framework tink…
Browse files Browse the repository at this point in the history
…ering in core test (#718)
  • Loading branch information
mvandervoord committed Mar 31, 2024
1 parent c444b63 commit 3cbe499
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/tests/test_unity_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,8 @@ void testFailureCountIncrementsAndIsReturnedAtEnd(void)
startFlushSpy();
savedGetFlushSpyCalls = getFlushSpyCalls();
UnityConcludeTest();
TEST_ASSERT_EQUAL(0, savedGetFlushSpyCalls);
endPutcharSpy();
TEST_ASSERT_EQUAL(0, savedGetFlushSpyCalls);
TEST_ASSERT_EQUAL(savedFailures + 1, Unity.TestFailures);
#if defined(UNITY_OUTPUT_FLUSH) && defined(UNITY_OUTPUT_FLUSH_HEADER_DECLARATION)
TEST_ASSERT_EQUAL(1, getFlushSpyCalls());
Expand Down

0 comments on commit 3cbe499

Please sign in to comment.