diff options
author | Zach Mullen <zach.mullen@kitware.com> | 2010-05-07 15:16:44 (GMT) |
---|---|---|
committer | Zach Mullen <zach.mullen@kitware.com> | 2010-05-07 15:16:44 (GMT) |
commit | d80323bccd12cc64f3443c49e7cbda2a0506ace1 (patch) | |
tree | e1f502dd59f22178522149d35e78f88345b9ee00 /Tests/CTestTestScheduler | |
parent | 231cbbef80210da31385427b45361f76d81ee294 (diff) | |
download | CMake-d80323bccd12cc64f3443c49e7cbda2a0506ace1.zip CMake-d80323bccd12cc64f3443c49e7cbda2a0506ace1.tar.gz CMake-d80323bccd12cc64f3443c49e7cbda2a0506ace1.tar.bz2 |
Fix CTestTestScheduler sporadic failure.
Increased the time difference between each test so that overburdened systems won't fail this test sometimes.
Diffstat (limited to 'Tests/CTestTestScheduler')
-rw-r--r-- | Tests/CTestTestScheduler/CMakeLists.txt | 4 | ||||
-rw-r--r-- | Tests/CTestTestScheduler/sleep.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Tests/CTestTestScheduler/CMakeLists.txt b/Tests/CTestTestScheduler/CMakeLists.txt index 8e7678d..882988f 100644 --- a/Tests/CTestTestScheduler/CMakeLists.txt +++ b/Tests/CTestTestScheduler/CMakeLists.txt @@ -4,6 +4,6 @@ INCLUDE (CTest) ADD_EXECUTABLE (Sleep sleep.c) -FOREACH (time RANGE 1 5) +FOREACH (time RANGE 1 4) ADD_TEST (TestSleep${time} Sleep ${time}) -ENDFOREACH (time RANGE 1 5) +ENDFOREACH (time RANGE 1 4) diff --git a/Tests/CTestTestScheduler/sleep.c b/Tests/CTestTestScheduler/sleep.c index b06776c..9631a68 100644 --- a/Tests/CTestTestScheduler/sleep.c +++ b/Tests/CTestTestScheduler/sleep.c @@ -4,13 +4,13 @@ # include <unistd.h> #endif -/* sleeps for 2n seconds, where n is the argument to the program */ +/* sleeps for 4n seconds, where n is the argument to the program */ int main(int argc, char** argv) { int time; if(argc > 1) { - time = 3 * atoi(argv[1]); + time = 4 * atoi(argv[1]); } #if defined(_WIN32) Sleep(time * 1000); |