summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeLists.txt
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2010-02-26 18:45:23 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2010-02-26 18:45:23 (GMT)
commitab650f095f0d92416142af85831b0585f5ff9310 (patch)
tree1afd12861a49630d415f25505898d990257d6784 /Tests/CMakeLists.txt
parentb4d27dc041c9164d6f3ad39e192f4b7d116ca3b3 (diff)
downloadCMake-ab650f095f0d92416142af85831b0585f5ff9310.zip
CMake-ab650f095f0d92416142af85831b0585f5ff9310.tar.gz
CMake-ab650f095f0d92416142af85831b0585f5ff9310.tar.bz2
Different versions of cygwin report differet messages for cygwin
For cygwin pass the badexe test if either ***Failed or BAD_COMMAND show up in the output of the test.
Diffstat (limited to 'Tests/CMakeLists.txt')
-rw-r--r--Tests/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index 7b91333..7004de3 100644
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -1268,10 +1268,10 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
--output-log "${CMake_BINARY_DIR}/Tests/CTestTestBadExe/testOutput.log"
)
SET(CTestTestBadExe_REGEX "BAD_COMMAND")
- # cygwin can not be made to produce a BAD_COMMAND error
+ # some cygwin can not be made to produce a BAD_COMMAND error
# the best we can get from it is a failed test
IF(CYGWIN)
- SET(CTestTestBadExe_REGEX "\\*\\*\\*Failed")
+ SET(CTestTestBadExe_REGEX "(\\*\\*\\*Failed)|BAD_COMMAND")
ENDIF()
SET_TESTS_PROPERTIES(CTestTestBadExe PROPERTIES
PASS_REGULAR_EXPRESSION "${CTestTestBadExe_REGEX}")