COMP: fix tests where the building cmake doesn't have GET_TEST_PROPERTY
Alex
This commit is contained in:
parent
25e97d20ce
commit
07613ff7f8
|
@ -621,7 +621,7 @@ IF(BUILD_TESTING)
|
|||
--output-log "${CMake_BINARY_DIR}/Tests/CTestTest3/testOutput.log"
|
||||
)
|
||||
# these tests take a long time, make sure they have it
|
||||
IF(COMMAND SET_TESTS_PROPERTIES)
|
||||
IF(COMMAND SET_TESTS_PROPERTIES AND COMMAND GET_TEST_PROPERTY)
|
||||
# if timeouts have not already been set
|
||||
GET_TEST_PROPERTY(CTestTest TIMEOUT PREVIOUS_TIMEOUT)
|
||||
IF ("${PREVIOUS_TIMEOUT}" MATCHES NOTFOUND)
|
||||
|
@ -637,7 +637,7 @@ IF(BUILD_TESTING)
|
|||
IF ("${PREVIOUS_TIMEOUT}" MATCHES NOTFOUND)
|
||||
SET_TESTS_PROPERTIES ( CTestTest3 PROPERTIES TIMEOUT 1500)
|
||||
ENDIF ("${PREVIOUS_TIMEOUT}" MATCHES NOTFOUND)
|
||||
ENDIF(COMMAND SET_TESTS_PROPERTIES)
|
||||
ENDIF(COMMAND SET_TESTS_PROPERTIES AND COMMAND GET_TEST_PROPERTY)
|
||||
ENDIF (CTEST_TEST_CTEST AND CMAKE_RUN_LONG_TESTS)
|
||||
|
||||
IF("${CMAKE_TEST_GENERATOR}" MATCHES Xcode)
|
||||
|
|
Loading…
Reference in New Issue