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.
This commit is contained in:
Brad King 2009-12-21 10:00:51 -05:00
parent 3312e3d710
commit 5cf77136cb
1 changed files with 5 additions and 1 deletions

View File

@ -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})