Disable another wxStopWatch test case in the build bot builds.

We can't rely on the program waking up quickly enough when running on the
(loaded) buildbot machines, better to skip this test than to have spurious
failures.

This is a backport of 5de9b53902 from trunk.
This commit is contained in:
Vadim Zeitlin
2014-05-22 15:13:16 +00:00
parent 46c335c8ef
commit 6dba08aead

View File

@@ -145,7 +145,19 @@ void StopWatchTestCase::RestartBug()
WX_ASSERT_MESSAGE
(
("Actual time value is %ld", t),
t > offset + sleepTime - tolerance &&
t < offset + sleepTime + tolerance
t >= offset + sleepTime
);
// As above, this is not actually due to the fact of the test being
// automatic but just because buildot machines are usually pretty slow, so
// this test often fails there simply because of the high load on them.
if ( !IsAutomaticTest() )
{
WX_ASSERT_MESSAGE
(
("Actual time value is %ld", t),
t < offset + sleepTime + tolerance
);
}
}