diff options
author | Brad King <brad.king@kitware.com> | 2009-12-21 10:00:51 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-12-21 10:00:51 -0500 |
commit | 5cf77136cb938915c244d82ca55fcaf5177fd381 (patch) | |
tree | 406b454f037a447442e25ad85acbfc0b02f25d90 /Tests/CTestTestTimeout | |
parent | 3312e3d7108f71b8f0c64b90850ff2a4f943c5c0 (diff) | |
download | cmake-5cf77136cb938915c244d82ca55fcaf5177fd381.tar.gz |
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.
Diffstat (limited to 'Tests/CTestTestTimeout')
-rw-r--r-- | Tests/CTestTestTimeout/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Tests/CTestTestTimeout/CMakeLists.txt b/Tests/CTestTestTimeout/CMakeLists.txt index d22c63d212..0fd1cebb30 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}) |