Outline throwing of TestSkipException

This commit is contained in:
Martin Hořeňovský committed 2023-03-12 00:45:31 +01:00
1 parent ba94278bdd
commit 1dfaa8abe7
3 files changed
+17 -7

No files matched your search

@@ -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();
}
}