byte-physics / igortest

Igor Pro Universal Testing Framework
https://docs.byte-physics.de/igor-unit-testing-framework/
BSD 3-Clause "New" or "Revised" License
7 stars 2 forks source link

Fix: Execute test suite end hook only if started #391

Closed Garados007 closed 1 year ago

Garados007 commented 1 year ago

RunTest could call the test suite end hook without calling the begin hook first. This can happen if the user aborts the TEST_BEGIN_OVERRIDE user hook.

This is now fixed as such as it is checked if in the current RunTest run it can guaranteed that IUTF_TEST_SUITE_BEGIN_CONST was ever called before calling IUTF_TEST_SUITE_END_CONST.

Close #347

Garados007 commented 1 year ago

@t-b @MichaelHuth Ready for review.