mirror of
https://github.com/catchorg/Catch2.git
synced 2025-06-02 01:47:57 +00:00
Fixes issue #164
- Removed spurious (re-)throw when catching unexpected exception
This commit is contained in:
parent
b3acf45d70
commit
2666c96d4e
4 changed files with 91 additions and 46 deletions
|
@ -88,7 +88,6 @@ inline bool isTrue( bool value ){ return value; }
|
|||
} catch( ... ) { \
|
||||
INTERNAL_CATCH_ACCEPT_EXPR( Catch::ExpressionResultBuilder( Catch::ResultWas::ThrewException ) << Catch::translateActiveException(), \
|
||||
resultDisposition | Catch::ResultDisposition::ContinueOnFailure, expr ); \
|
||||
throw; \
|
||||
} \
|
||||
} while( Catch::isTrue( false ) )
|
||||
|
||||
|
@ -179,7 +178,6 @@ inline bool isTrue( bool value ){ return value; }
|
|||
} catch( ... ) { \
|
||||
INTERNAL_CATCH_ACCEPT_EXPR( ( Catch::ExpressionResultBuilder( Catch::ResultWas::ThrewException ) << Catch::translateActiveException() ), \
|
||||
resultDisposition | Catch::ResultDisposition::ContinueOnFailure, false ); \
|
||||
throw; \
|
||||
} \
|
||||
} while( Catch::isTrue( false ) )
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue