Move throwing test failure exceptions into a helper

This commit is contained in:
Martin Hořeňovský
2022-11-05 00:22:45 +01:00
parent ec59cd8736
commit 5f9d4ef331
5 changed files with 33 additions and 5 deletions
@@ -48,11 +48,7 @@ namespace Catch {
CATCH_BREAK_INTO_DEBUGGER();
}
if (m_reaction.shouldThrow) {
#if !defined(CATCH_CONFIG_DISABLE_EXCEPTIONS)
throw Catch::TestFailureException();
#else
CATCH_ERROR( "Test failure requires aborting test!" );
#endif
throw_test_failure_exception();
}
}
void AssertionHandler::setCompleted() {