From f641dfd78c33bd09b429dc925f48c65d2fa1e10c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 10 May 2014 16:20:13 +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. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76494 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- tests/events/stopwatch.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/events/stopwatch.cpp b/tests/events/stopwatch.cpp index 1650484039..4dfd272bf6 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;