Added FAIL_CHECK

Works like FAIL, but does not abort test.
As proposed in #765
This commit is contained in:
Phil Nash
2017-03-08 15:40:20 +00:00
parent a2515755c3
commit 5dd0639520
8 changed files with 84 additions and 23 deletions

View File

@@ -61,7 +61,7 @@ with expansion:
MiscTests.cpp:<line number>:
PASSED:
REQUIRE( (*__errno_location ()) == 1 )
REQUIRE( (*__error()) == 1 )
with expansion:
1 == 1
@@ -82,7 +82,10 @@ ConditionTests.cpp:<line number>: FAILED:
with expansion:
false
===============================================================================
test cases: 5 | 3 passed | 2 failed
assertions: 11 | 7 passed | 4 failed
ConditionTests.cpp:<line number>: FAILED:
CHECK_FALSE( true )
===============================================================================
test cases: 5 | 3 passed | 1 failed | 1 failed as expected
assertions: 12 | 7 passed | 4 failed | 1 failed as expected