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
fix warning in extras/CatchAddTests.cmake
- Commit
c44d9cc718614e6121f5a0479cb9062654162134- Author
- Liam Keegan ·
- Parents
b9853b4b356b
Changes
extras/CatchAddTests.cmake | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/extras/CatchAddTests.cmake b/extras/CatchAddTests.cmake index a174c7d4..3688b72f 100644 --- a/extras/CatchAddTests.cmake +++ b/extras/CatchAddTests.cmake @@ -55,11 +55,7 @@ execute_process( RESULT_VARIABLE reporters_result WORKING_DIRECTORY "${TEST_WORKING_DIR}" ) -if(${reporters_result} EQUAL 0) - message(WARNING - "Test executable '${TEST_EXECUTABLE}' contains no reporters!\n" - ) -elseif(${reporters_result} LESS 0) +if(NOT ${reporters_result} EQUAL 0) message(FATAL_ERROR "Error running test executable '${TEST_EXECUTABLE}':\n" " Result: ${reporters_result}\n"