REQUIRE_THROWS_AS is now reported with expected type as well

Also updated tests to reflect this change.
This commit is contained in:
Martin Hořeňovský
2017-02-09 12:41:16 +01:00
parent e543cc0646
commit 9952dda524
5 changed files with 19 additions and 19 deletions

View File

@@ -87,7 +87,7 @@
///////////////////////////////////////////////////////////////////////////////
#define INTERNAL_CATCH_THROWS_AS( expr, exceptionType, resultDisposition, macroName ) \
do { \
Catch::ResultBuilder __catchResult( macroName, CATCH_INTERNAL_LINEINFO, #expr, resultDisposition ); \
Catch::ResultBuilder __catchResult( macroName, CATCH_INTERNAL_LINEINFO, #expr ", " #exceptionType, resultDisposition ); \
if( __catchResult.allowThrows() ) \
try { \
static_cast<void>(expr); \