summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-12-21 15:00:51 (GMT)
committerBrad King <brad.king@kitware.com>2009-12-21 15:00:51 (GMT)
commit5cf77136cb938915c244d82ca55fcaf5177fd381 (patch)
tree406b454f037a447442e25ad85acbfc0b02f25d90
parent3312e3d7108f71b8f0c64b90850ff2a4f943c5c0 (diff)
downloadCMake-5cf77136cb938915c244d82ca55fcaf5177fd381.zip
CMake-5cf77136cb938915c244d82ca55fcaf5177fd381.tar.gz
CMake-5cf77136cb938915c244d82ca55fcaf5177fd381.tar.bz2
Longer CTestTestTimeout default time on Cygwin
The commit "Make CTestTestTimeout time configurable" added a CMake cache variable CTestTestTimeout_TIME to configure the length of the timeout used by the inner CTestTestTimeout test. The reason was to allow users on slow machines to give this test some extra time without extending the timeout for everyone. However, Cygwin CMake seems to load slowly enough that it is worth a longer default timeout for that platform.
-rw-r--r--Tests/CTestTestTimeout/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/Tests/CTestTestTimeout/CMakeLists.txt b/Tests/CTestTestTimeout/CMakeLists.txt
index d22c63d..0fd1ceb 100644
--- a/Tests/CTestTestTimeout/CMakeLists.txt
+++ b/Tests/CTestTestTimeout/CMakeLists.txt
@@ -3,7 +3,11 @@ PROJECT(CTestTestTimeout)
INCLUDE(CTest)
IF(NOT TIMEOUT)
- SET(TIMEOUT 1)
+ IF(CYGWIN)
+ SET(TIMEOUT 4) # Cygwin CMake sometimes takes > 1 second to load!
+ ELSE()
+ SET(TIMEOUT 1)
+ ENDIF()
ENDIF()
ADD_DEFINITIONS(-DTIMEOUT=${TIMEOUT})