ThrowTheSwitch / Unity

Simple Unit Testing for C
ThrowTheSwitch.org
MIT License
4.02k stars 969 forks source link

No calls to assert macros until after UnityConcludeTest clears Curren… #717

Closed paulcdca closed 6 months ago

paulcdca commented 7 months ago

This request fixes issue #529 The current implementation sets CurrentTestFailed and then tries to use TEST_ASSERT_EQUAL. This results is TEST_ABORT as CurrentTestFailed is set. The change moves the assertion to after the call to UnityConcludeTest, allowing the test to complete correctly