From 5cf77136cb938915c244d82ca55fcaf5177fd381 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 21 Dec 2009 10:00:51 -0500 Subject: [PATCH] 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. --- Tests/CTestTestTimeout/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Tests/CTestTestTimeout/CMakeLists.txt b/Tests/CTestTestTimeout/CMakeLists.txt index d22c63d21..0fd1cebb3 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})