summaryrefslogtreecommitdiffstats
path: root/Tests/Complex
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-02-10 16:47:18 (GMT)
committerBrad King <brad.king@kitware.com>2006-02-10 16:47:18 (GMT)
commit1b6e55933be7c8ed114994cfdb7cb9eb85f854a1 (patch)
tree02506d6da2c78b681f7b2aa63458b3e6e044da6b /Tests/Complex
parent4646929df42808b1ddca449117978b07ca7df2a7 (diff)
downloadCMake-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.txt8
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