mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-23 03:43:28 +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
225e90d8ba
commit
184865358c
@ -37,7 +37,7 @@
|
||||
( __catchResult <= expr ).endExpression(); \
|
||||
} \
|
||||
catch( ... ) { \
|
||||
__catchResult.useActiveException( Catch::ResultDisposition::Normal ); \
|
||||
__catchResult.useActiveException( resultDisposition ); \
|
||||
} \
|
||||
INTERNAL_CATCH_REACT( __catchResult ) \
|
||||
} while( Catch::alwaysFalse( sizeof(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