summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-06-24 18:48:27 (GMT)
committerBrad King <brad.king@kitware.com>2009-06-24 18:48:27 (GMT)
commit191573e8d7906f8d804cad7280635cb416d3a212 (patch)
treefd1394e7e016290d303b9462ecd843f686cae87b /Tests
parent4266d54adbd87fe6eb64bec31441fef1920589ce (diff)
downloadCMake-191573e8d7906f8d804cad7280635cb416d3a212.zip
CMake-191573e8d7906f8d804cad7280635cb416d3a212.tar.gz
CMake-191573e8d7906f8d804cad7280635cb416d3a212.tar.bz2
BUG: Extend timeout of ExternalProject test
This test requires a long time on slower machines, so we need to extend its timeout. It is an important test, so it does not fall under the CMAKE_RUN_LONG_TESTS option. In the future we should try to shorten the test by building simpler external projects.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index 51ccfe6..eca6d66 100644
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -545,6 +545,11 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=CVS -P ${CMake_SOURCE_DIR}/Utilities/Rel
--test-command ${CMAKE_CTEST_COMMAND} -V
)
LIST(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/ExternalProject")
+ # The ExternalProject test takes 900 seconds on some machines!
+ GET_TEST_PROPERTY(ExternalProject TIMEOUT PREVIOUS_TIMEOUT)
+ IF("${PREVIOUS_TIMEOUT}" MATCHES NOTFOUND)
+ SET_TESTS_PROPERTIES(ExternalProject PROPERTIES TIMEOUT 1000)
+ ENDIF("${PREVIOUS_TIMEOUT}" MATCHES NOTFOUND)
# do each of the tutorial steps
FOREACH(STP RANGE 1 7)