Fix for #270 (REQUIRE continues if test throws an exception).

Added test case that reproduced the bug then applied the fix.
This commit is contained in:
Phil Nash
2014-04-12 19:07:24 +01:00
parent e9d35377fa
commit a176b93738
9 changed files with 60 additions and 12 deletions

View File

@@ -87,7 +87,7 @@ struct TestFailureException{};
throw; \
} catch( ... ) { \
INTERNAL_CATCH_ACCEPT_EXPR( Catch::ExpressionResultBuilder( Catch::ResultWas::ThrewException ) << Catch::translateActiveException(), \
resultDisposition | Catch::ResultDisposition::ContinueOnFailure, expr ); \
resultDisposition, expr ); \
} \
} while( Catch::isTrue( false ) )

View File

@@ -13,7 +13,7 @@
namespace Catch {
// These numbers are maintained by a script
Version libraryVersion( 1, 0, 33, "master" );
Version libraryVersion( 1, 0, 34, "master" );
}
#endif // TWOBLUECUBES_CATCH_VERSION_HPP_INCLUDED