Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Allow warnings about comparisons between signed and unsigned ints to get through

Commit
24b352f6b80ebb1db2bac20038dbd808633395cc
Author
Phil Nash ·
Parents
07f228a525e6

Files · Download .tar.gz

Changes

 internal/catch_capture.hpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/internal/catch_capture.hpp b/internal/catch_capture.hpp
index c0aa02ac..94eb2d01 100644
--- a/internal/catch_capture.hpp
+++ b/internal/catch_capture.hpp
@@ -667,7 +667,8 @@ inline bool isTrue
 
 ///////////////////////////////////////////////////////////////////////////////
 #define INTERNAL_CATCH_TEST( expr, isNot, stopOnFailure, macroName ) \
-    INTERNAL_CATCH_ACCEPT_EXPR( ( Catch::ResultBuilder( __FILE__, __LINE__, macroName, #expr, isNot )->*expr ), stopOnFailure );
+    INTERNAL_CATCH_ACCEPT_EXPR( ( Catch::ResultBuilder( __FILE__, __LINE__, macroName, #expr, isNot )->*expr ), stopOnFailure ); \
+    if( Catch::isTrue( false ) ){ bool dummyResult = ( expr ); Catch::isTrue( dummyResult ); }
 
 ///////////////////////////////////////////////////////////////////////////////
 #define INTERNAL_CATCH_NO_THROW( expr, stopOnFailure, macroName ) \