mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-28 02:34:27 +01:00
Don't call assertions until after we've concluded test framework tinkering in core test (#718)
This commit is contained in:
@@ -300,8 +300,8 @@ void testFailureCountIncrementsAndIsReturnedAtEnd(void)
|
|||||||
startFlushSpy();
|
startFlushSpy();
|
||||||
savedGetFlushSpyCalls = getFlushSpyCalls();
|
savedGetFlushSpyCalls = getFlushSpyCalls();
|
||||||
UnityConcludeTest();
|
UnityConcludeTest();
|
||||||
TEST_ASSERT_EQUAL(0, savedGetFlushSpyCalls);
|
|
||||||
endPutcharSpy();
|
endPutcharSpy();
|
||||||
|
TEST_ASSERT_EQUAL(0, savedGetFlushSpyCalls);
|
||||||
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