Skip to content

Commit

Permalink
Merge pull request #2044 from lkeegan/fix_cmake_catch_add_tests_warning
Browse files Browse the repository at this point in the history
fix warning in extras/CatchAddTests.cmake
  • Loading branch information
horenmar committed Oct 8, 2020
2 parents b9853b4 + c44d9cc commit 4ea18d6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions extras/CatchAddTests.cmake
Expand Up @@ -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"
Expand Down

0 comments on commit 4ea18d6

Please sign in to comment.