From 35a3ca5a1e90a9e3fbe73f722f1a496416c736eb Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 22 May 2014 15:13:16 +0000 Subject: [PATCH] Disable wxSleep() test case for buildbot builds. This test keeps failing just because the buildbot machine are too heavily loaded. This is not really an error, so just avoid running this test there. This is the backport of f641dfd7 from master. --- tests/events/stopwatch.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/events/stopwatch.cpp b/tests/events/stopwatch.cpp index c7d5d364d6..0b608f3352 100644 --- a/tests/events/stopwatch.cpp +++ b/tests/events/stopwatch.cpp @@ -64,6 +64,14 @@ CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( StopWatchTestCase, "StopWatchTestCase" ); void StopWatchTestCase::Misc() { + // Buildbot machines are quite slow and sleep doesn't work reliably there, + // i.e. it can sleep for much longer than requested. This is not really an + // error, so just don't run this test there -- and if you get failures in + // this test when running it interactively, this might also be normal if + // the machine is under heavy load. + if ( IsAutomaticTest() ) + return; + wxStopWatch sw; long t; wxLongLong usec;