diff options
Diffstat (limited to 'Tests/ComplexOneConfig')
-rw-r--r-- | Tests/ComplexOneConfig/CMakeLists.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Tests/ComplexOneConfig/CMakeLists.txt b/Tests/ComplexOneConfig/CMakeLists.txt index f51708e..a8437c2 100644 --- a/Tests/ComplexOneConfig/CMakeLists.txt +++ b/Tests/ComplexOneConfig/CMakeLists.txt @@ -145,10 +145,10 @@ EXECUTE_PROCESS( COMMAND ${CMAKE_COMMAND} -E echo "ABCDEFG" OUTPUT_VARIABLE TEST_OUT ) -IF("${TEST_OUT}" MATCHES "ABCDEFG") -ELSE("${TEST_OUT}" MATCHES "ABCDEFG") - MESSAGE(SEND_ERROR "EXECUTE_PROCESS output test failed") -ENDIF("${TEST_OUT}" MATCHES "ABCDEFG") +IF("${TEST_OUT}" MATCHES "^ABCDEFG\n$") +ELSE("${TEST_OUT}" MATCHES "^ABCDEFG\n$") + MESSAGE(SEND_ERROR "EXECUTE_PROCESS output test failed: [${TEST_OUT}]") +ENDIF("${TEST_OUT}" MATCHES "^ABCDEFG\n$") EXECUTE_PROCESS( COMMAND ${CMAKE_COMMAND} -E echo "ABCDEFG" COMMAND /process/does/not/exist |