From ca0c422964a0fcfadb099e76ecfbed13bf6b4d3a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 12 Apr 2015 22:46:46 +0200 Subject: [PATCH] Relax wxStopWatch test to make it less likely to fail on buildbot. Be prepared for sleeping taking more time than we budget for it on a highly loaded machine such as a buildbot slave. --- tests/events/stopwatch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/events/stopwatch.cpp b/tests/events/stopwatch.cpp index 1f0d585c7f..298a31c504 100644 --- a/tests/events/stopwatch.cpp +++ b/tests/events/stopwatch.cpp @@ -119,7 +119,7 @@ void StopWatchTestCase::Misc() WX_ASSERT_MESSAGE ( ("Actual time value is %ld", t), - t > 2*sleepTime - tolerance && t < 2*sleepTime + tolerance + t > 2*sleepTime - tolerance && t < 3*sleepTime ); }