Skip to content

Commit

Permalink
CHECK no longer stops running SECTION on exception.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
horenmar authored and philsquared committed Jan 23, 2017
1 parent 225e90d commit 1848653
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/internal/catch_capture.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1848653

Please sign in to comment.