Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/projects/SelfTest/ExceptionTests.cpp
diff options
context:
space:
mode:
authorPhil Nash2014-04-12 19:20:46 +0100
committerPhil Nash2014-04-12 19:20:46 +0100
commit1bccc03213b374e30b7bcfddcddffa8d7de1b680 (patch)
treec08d73d93e867be18d7a115ddcb23109d277e7fb /projects/SelfTest/ExceptionTests.cpp
parenta176b9373813b4763a7815791097e45f6aa623c8 (diff)
downloadcatch3-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.cpp8
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