ENH: Add testing of GET_TEST_PROPERTY command

This commit is contained in:
Andy Cedilnik 2005-09-17 09:53:09 -04:00
parent 8ee8cd372f
commit 28a9e9a919
1 changed files with 4 additions and 0 deletions

View File

@ -629,6 +629,10 @@ IF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)
IF(COMMAND SET_TESTS_PROPERTIES)
ADD_TEST(kwsys.testFail ${EXEC_DIR}/testFail)
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(BUILD_TESTING)
ENDIF(KWSYS_STANDALONE OR CMake_SOURCE_DIR)