ENH: Add testing of GET_TEST_PROPERTY command
This commit is contained in:
parent
8ee8cd372f
commit
28a9e9a919
|
@ -629,6 +629,10 @@ IF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)
|
||||||
IF(COMMAND SET_TESTS_PROPERTIES)
|
IF(COMMAND SET_TESTS_PROPERTIES)
|
||||||
ADD_TEST(kwsys.testFail ${EXEC_DIR}/testFail)
|
ADD_TEST(kwsys.testFail ${EXEC_DIR}/testFail)
|
||||||
SET_TESTS_PROPERTIES(kwsys.testFail PROPERTIES WILL_FAIL ON)
|
SET_TESTS_PROPERTIES(kwsys.testFail PROPERTIES WILL_FAIL ON)
|
||||||
|
GET_TEST_PROPERTY(kwsys.testFail WILL_FAIL wfv)
|
||||||
|
IF(NOT $wfv})
|
||||||
|
MESSAGE(FATAL_ERROR "GET_TEST_PROPERTY command does not work")
|
||||||
|
ENDIF(NOT $wfv})
|
||||||
ENDIF(COMMAND SET_TESTS_PROPERTIES)
|
ENDIF(COMMAND SET_TESTS_PROPERTIES)
|
||||||
ENDIF(BUILD_TESTING)
|
ENDIF(BUILD_TESTING)
|
||||||
ENDIF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)
|
ENDIF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)
|
||||||
|
|
Loading…
Reference in New Issue