mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-17 11:12:25 +01:00
CHECK no longer stops running SECTION on exception.
This seems to be much closer to desired behaviour than the current one, where CHECK(false) lets the execution continue, but CHECK(<throws>) does not.
This commit is contained in:
parent
e1c4a4bd9b
commit
576d8c9d81
@ -37,7 +37,7 @@
|
||||
( __catchResult <= expr ).endExpression(); \
|
||||
} \
|
||||
catch( ... ) { \
|
||||
__catchResult.useActiveException( Catch::ResultDisposition::Normal ); \
|
||||
__catchResult.useActiveException( resultDisposition ); \
|
||||
} \
|
||||
INTERNAL_CATCH_REACT( __catchResult ) \
|
||||
} while( Catch::isTrue( false && !!(expr) ) ) // expr here is never evaluated at runtime but it forces the compiler to give it a look
|
||||
|
Loading…
Reference in New Issue
Block a user