diff options
author | Brad King <brad.king@kitware.com> | 2006-02-10 16:47:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-02-10 16:47:18 (GMT) |
commit | 1b6e55933be7c8ed114994cfdb7cb9eb85f854a1 (patch) | |
tree | 02506d6da2c78b681f7b2aa63458b3e6e044da6b /Tests/Complex | |
parent | 4646929df42808b1ddca449117978b07ca7df2a7 (diff) | |
download | CMake-1b6e55933be7c8ed114994cfdb7cb9eb85f854a1.zip CMake-1b6e55933be7c8ed114994cfdb7cb9eb85f854a1.tar.gz CMake-1b6e55933be7c8ed114994cfdb7cb9eb85f854a1.tar.bz2 |
ENH: Strengthened EXECUTE_PROCESS output check test.
Diffstat (limited to 'Tests/Complex')
-rw-r--r-- | Tests/Complex/CMakeLists.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Tests/Complex/CMakeLists.txt b/Tests/Complex/CMakeLists.txt index f51708e..a8437c2 100644 --- a/Tests/Complex/CMakeLists.txt +++ b/Tests/Complex/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 |