aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/catch2/internal/catch_test_failure_exception.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/catch2/internal/catch_test_failure_exception.cpp')
-rw-r--r--src/catch2/internal/catch_test_failure_exception.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/catch2/internal/catch_test_failure_exception.cpp b/src/catch2/internal/catch_test_failure_exception.cpp
index c1edff3c..8ea31313 100644
--- a/src/catch2/internal/catch_test_failure_exception.cpp
+++ b/src/catch2/internal/catch_test_failure_exception.cpp
@@ -20,4 +20,12 @@ namespace Catch {
#endif
}
+ void throw_test_skip_exception() {
+#if !defined( CATCH_CONFIG_DISABLE_EXCEPTIONS )
+ throw Catch::TestSkipException();
+#else
+ CATCH_ERROR( "Explicitly skipping tests during runtime requires exceptions" );
+#endif
+ }
+
} // namespace Catch