diff options
| author | Phil Nash | 2014-04-12 19:20:46 +0100 |
|---|---|---|
| committer | Phil Nash | 2014-04-12 19:20:46 +0100 |
| commit | 1bccc03213b374e30b7bcfddcddffa8d7de1b680 (patch) | |
| tree | c08d73d93e867be18d7a115ddcb23109d277e7fb /projects/SelfTest/ExceptionTests.cpp | |
| parent | a176b9373813b4763a7815791097e45f6aa623c8 (diff) | |
| download | catch3-1bccc03213b374e30b7bcfddcddffa8d7de1b680.tar.gz | |
Secondary fix for #270 (addresses same issue with CHECK)
Diffstat (limited to 'projects/SelfTest/ExceptionTests.cpp')
| -rw-r--r-- | projects/SelfTest/ExceptionTests.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/projects/SelfTest/ExceptionTests.cpp b/projects/SelfTest/ExceptionTests.cpp index a193b226..9a325c55 100644 --- a/projects/SelfTest/ExceptionTests.cpp +++ b/projects/SelfTest/ExceptionTests.cpp @@ -66,12 +66,18 @@ TEST_CASE( "When unchecked exceptions are thrown from functions they are always CHECK( thisThrows() == 0 ); } -TEST_CASE( "When unchecked exceptions are thrown during a require the test should fail", "[.][failing]" ) +TEST_CASE( "When unchecked exceptions are thrown during a REQUIRE the test should abort fail", "[.][failing]" ) { REQUIRE( thisThrows() == 0 ); FAIL( "This should never happen" ); } +TEST_CASE( "When unchecked exceptions are thrown during a CHECK the test should abort and fail", "[.][failing]" ) +{ + CHECK( thisThrows() == 0 ); + FAIL( "This should never happen" ); +} + TEST_CASE( "When unchecked exceptions are thrown, but caught, they do not affect the test", "" ) { try |