mirror of
https://github.com/catchorg/Catch2
synced 2026-02-15 01:32:11 +00:00
Fix erroneous result disposition for {REQUIRE,CHECK}_THAT
This fixes result disposition being ContinueOnFailure | ContinueOnFailure for CHECK_THAT (obviously an error) and Normal | ContinueOnFailure for REQUIRE_THAT (less obviously an error, but worse, as that signals to the pipeline that assertion failure should both abort and continue the test with ???? happening).
This commit is contained in:
@@ -162,7 +162,7 @@
|
||||
try { \
|
||||
__catchResult.captureMatch( arg, matcher, #matcher ); \
|
||||
} catch( ... ) { \
|
||||
__catchResult.useActiveException( resultDisposition | Catch::ResultDisposition::ContinueOnFailure ); \
|
||||
__catchResult.useActiveException( resultDisposition ); \
|
||||
} \
|
||||
INTERNAL_CATCH_REACT( __catchResult ) \
|
||||
} while( Catch::alwaysFalse() )
|
||||
|
||||
Reference in New Issue
Block a user