Fix BadExe test on cygwin.
This commit is contained in:
parent
3e724b2725
commit
bdcce34435
|
@ -1267,12 +1267,14 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=CVS -P ${CMake_SOURCE_DIR}/Utilities/Rel
|
||||||
-S "${CMake_BINARY_DIR}/Tests/CTestTestBadExe/test.cmake" -V
|
-S "${CMake_BINARY_DIR}/Tests/CTestTestBadExe/test.cmake" -V
|
||||||
--output-log "${CMake_BINARY_DIR}/Tests/CTestTestBadExe/testOutput.log"
|
--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
|
||||||
|
# the best we can get from it is a failed test
|
||||||
IF(CYGWIN)
|
IF(CYGWIN)
|
||||||
SET_TESTS_PROPERTIES(CTestTestBadExe PROPERTIES WILL_FAIL ON)
|
SET(CTestTestBadExe_REGEX "\\*\\*\\*Failed")
|
||||||
ELSE(CYGWIN)
|
ENDIF()
|
||||||
SET_TESTS_PROPERTIES(CTestTestBadExe PROPERTIES
|
SET_TESTS_PROPERTIES(CTestTestBadExe PROPERTIES
|
||||||
PASS_REGULAR_EXPRESSION "BAD_COMMAND")
|
PASS_REGULAR_EXPRESSION "${CTestTestBadExe_REGEX}")
|
||||||
ENDIF(CYGWIN)
|
|
||||||
|
|
||||||
CONFIGURE_FILE(
|
CONFIGURE_FILE(
|
||||||
"${CMake_SOURCE_DIR}/Tests/CTestTestParallel/test.cmake.in"
|
"${CMake_SOURCE_DIR}/Tests/CTestTestParallel/test.cmake.in"
|
||||||
|
|
Loading…
Reference in New Issue