Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/internal/catch_assertion_handler.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2023-03-12 00:45:31 +0100
committerMartin Hořeňovský2023-03-12 00:45:31 +0100
commit1dfaa8abe7ee6da548697ed8c6a704a2e7db1e41 (patch)
tree990da5e43ecb57ae6eb89f57b5907a5f3db9864d /src/catch2/internal/catch_assertion_handler.cpp
parentba94278bdd0fb22e94490e5fefd65f356c37947c (diff)
downloadcatch3-1dfaa8abe7ee6da548697ed8c6a704a2e7db1e41.tar.gz
Outline throwing of TestSkipException
Diffstat (limited to 'src/catch2/internal/catch_assertion_handler.cpp')
-rw-r--r--src/catch2/internal/catch_assertion_handler.cpp6
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 b2accef3..c28b6190 100644
--- a/src/catch2/internal/catch_assertion_handler.cpp
+++ b/src/catch2/internal/catch_assertion_handler.cpp
@@ -51,11 +51,7 @@ namespace Catch {
throw_test_failure_exception();
}
if ( m_reaction.shouldSkip ) {
-#if !defined( CATCH_CONFIG_DISABLE_EXCEPTIONS )
- throw Catch::TestSkipException();
-#else
- CATCH_ERROR( "Explicitly skipping tests during runtime requires exceptions" );
-#endif
+ throw_test_skip_exception();
}
}