2
0
mirror of https://github.com/catchorg/Catch2 synced 2026-02-25 04:52:10 +00:00

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

View File

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