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:
parent
3312e3d710
commit
5cf77136cb
|
@ -3,7 +3,11 @@ PROJECT(CTestTestTimeout)
|
|||
INCLUDE(CTest)
|
||||
|
||||
IF(NOT TIMEOUT)
|
||||
IF(CYGWIN)
|
||||
SET(TIMEOUT 4) # Cygwin CMake sometimes takes > 1 second to load!
|
||||
ELSE()
|
||||
SET(TIMEOUT 1)
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
|
||||
ADD_DEFINITIONS(-DTIMEOUT=${TIMEOUT})
|
||||
|
|
Loading…
Reference in New Issue