From 5c2a5e06fdebc7772ba6b98e075e055f0c18926d Mon Sep 17 00:00:00 2001 From: Zach Mullen Date: Thu, 17 Dec 2009 12:51:40 -0500 Subject: Workaround for CTestTestBadExe on Cygwin --- Tests/CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index 4f53a69..e64e6b5 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -1263,8 +1263,12 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=CVS -P ${CMake_SOURCE_DIR}/Utilities/Rel -S "${CMake_BINARY_DIR}/Tests/CTestTestBadExe/test.cmake" -V --output-log "${CMake_BINARY_DIR}/Tests/CTestTestBadExe/testOutput.log" ) - SET_TESTS_PROPERTIES(CTestTestBadExe PROPERTIES - PASS_REGULAR_EXPRESSION "BAD_COMMAND") + IF(CYGWIN) + SET_TESTS_PROPERTIES(CTestTestBadExe PROPERTIES WILL_FAIL ON) + ELSE(CYGWIN) + SET_TESTS_PROPERTIES(CTestTestBadExe PROPERTIES + PASS_REGULAR_EXPRESSION "BAD_COMMAND") + ENDIF(CYGWIN) CONFIGURE_FILE( "${CMake_SOURCE_DIR}/Tests/CTestTestParallel/test.cmake.in" -- cgit v0.12