diff options
| author | Phil Nash | 2013-04-20 21:04:32 +0100 |
|---|---|---|
| committer | Phil Nash | 2013-04-20 21:04:32 +0100 |
| commit | 2666c96d4e407c18fe6518007d403fe05327bcbc (patch) | |
| tree | 39a82c8b8f146ca90a99726a167a2f07917f6c16 /include/internal | |
| parent | b3acf45d7052efc97409db4ba2f930833cd15596 (diff) | |
| download | catch3-2666c96d4e407c18fe6518007d403fe05327bcbc.tar.gz | |
Fixes issue #164
- Removed spurious (re-)throw when catching unexpected exception
Diffstat (limited to 'include/internal')
| -rw-r--r-- | include/internal/catch_capture.hpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/internal/catch_capture.hpp b/include/internal/catch_capture.hpp index 4cc9705f..575f1931 100644 --- a/include/internal/catch_capture.hpp +++ b/include/internal/catch_capture.hpp @@ -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 ) ) |