diff options
| author | Martin Hořeňovský | 2022-11-05 00:22:45 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2022-11-05 00:22:45 +0100 |
| commit | 5f9d4ef3319f2b13011161662ca2b02d0feb4667 (patch) | |
| tree | 8d64bc6b62fb4ec1c12078cc8cef53aa9fb55a5c /src/catch2/internal/catch_assertion_handler.cpp | |
| parent | ec59cd8736b7ee8fcd69c76c71c2a0b72293b00c (diff) | |
| download | catch3-5f9d4ef3319f2b13011161662ca2b02d0feb4667.tar.gz | |
Move throwing test failure exceptions into a helper
Diffstat (limited to 'src/catch2/internal/catch_assertion_handler.cpp')
| -rw-r--r-- | src/catch2/internal/catch_assertion_handler.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/catch2/internal/catch_assertion_handler.cpp b/src/catch2/internal/catch_assertion_handler.cpp index 96e5c8b3..bfa0897d 100644 --- a/src/catch2/internal/catch_assertion_handler.cpp +++ b/src/catch2/internal/catch_assertion_handler.cpp @@ -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() { |