diff options
| author | Phil Nash | 2012-11-13 09:45:29 +0000 |
|---|---|---|
| committer | Phil Nash | 2012-11-13 09:45:29 +0000 |
| commit | 7717c29072013fd45e36d1bc48527927fa94cbed (patch) | |
| tree | afa6d1a530d715e90b38cbc9cebf72b12745cc7c /include | |
| parent | d539da903032e5a6f2bf40d6d7d8e7874c860088 (diff) | |
| download | catch3-7717c29072013fd45e36d1bc48527927fa94cbed.tar.gz | |
Implemented CHECK_NOFAIL
Previous commit missed some files
Diffstat (limited to 'include')
| -rw-r--r-- | include/catch.hpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/catch.hpp b/include/catch.hpp index 1c330192..54acd738 100644 --- a/include/catch.hpp +++ b/include/catch.hpp @@ -59,6 +59,7 @@ #define CATCH_CHECK_FALSE( expr ) INTERNAL_CATCH_TEST( expr, Catch::ResultDisposition::ContinueOnFailure | Catch::ResultDisposition::NegateResult, "CATCH_CHECK_FALSE" ) #define CATCH_CHECKED_IF( expr ) INTERNAL_CATCH_IF( expr, Catch::ResultDisposition::ContinueOnFailure, "CATCH_CHECKED_IF" ) #define CATCH_CHECKED_ELSE( expr ) INTERNAL_CATCH_ELSE( expr, Catch::ResultDisposition::ContinueOnFailure, "CATCH_CHECKED_ELSE" ) +#define CATCH_CHECK_NOFAIL( expr ) INTERNAL_CATCH_TEST( expr, Catch::ResultDisposition::ContinueOnFailure | Catch::ResultDisposition::SuppressFail, "CATCH_CHECK_NOFAIL" ) #define CATCH_CHECK_THROWS( expr ) INTERNAL_CATCH_THROWS( expr, ..., Catch::ResultDisposition::ContinueOnFailure, "CATCH_CHECK_THROWS" ) #define CATCH_CHECK_THROWS_AS( expr, exceptionType ) INTERNAL_CATCH_THROWS_AS( expr, exceptionType, Catch::ResultDisposition::ContinueOnFailure, "CATCH_CHECK_THROWS_AS" ) @@ -86,10 +87,6 @@ #define CATCH_GENERATE( expr) INTERNAL_CATCH_GENERATE( expr ) -/////////////// -// Still to be implemented -#define CHECK_NOFAIL( expr ) // !TBD - reports violation, but doesn't fail Test - // If CATCH_CONFIG_PREFIX_ALL is not defined then the CATCH_ prefix is not required #else |