ExternalProject Test: Increase test timeout value

Previously, it was hard-coded at 1000 seconds. Now it uses
the value of CMAKE_LONG_TEST_TIMEOUT, which has a minimum
value of 1500 seconds, but might have a longer value depending
on the CTEST_TEST_TIMEOUT value of the driving dashboard.

This should help avoid test failures on overloaded dashboard
machines where it really does take that long to finish the
test successfully.
This commit is contained in:
David Cole 2011-01-11 15:24:50 -05:00
parent caa45a5f81
commit 42b26ee5db
1 changed files with 2 additions and 5 deletions

View File

@ -792,11 +792,8 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
--test-command ${CMAKE_CTEST_COMMAND} -V --test-command ${CMAKE_CTEST_COMMAND} -V
) )
LIST(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/ExternalProject") LIST(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/ExternalProject")
# The ExternalProject test takes 900 seconds on some machines! SET_TESTS_PROPERTIES(ExternalProject PROPERTIES
GET_TEST_PROPERTY(ExternalProject TIMEOUT PREVIOUS_TIMEOUT) TIMEOUT ${CMAKE_LONG_TEST_TIMEOUT})
IF("${PREVIOUS_TIMEOUT}" MATCHES NOTFOUND)
SET_TESTS_PROPERTIES(ExternalProject PROPERTIES TIMEOUT 1000)
ENDIF("${PREVIOUS_TIMEOUT}" MATCHES NOTFOUND)
# do each of the tutorial steps # do each of the tutorial steps
FOREACH(STP RANGE 1 7) FOREACH(STP RANGE 1 7)