Outline throwing of TestSkipException

This commit is contained in:
Martin Hořeňovský
2023-03-12 00:45:31 +01:00
parent ba94278bdd
commit 1dfaa8abe7
3 changed files with 17 additions and 7 deletions
@@ -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