From 53a7778b90618e1bab75e91e08d7bff49beb0241 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Wed, 12 Sep 2012 14:55:09 +0200 Subject: Increase the fuzziness of the QSemaphore test to 50 ms The test tries to acquire a semaphore that isn't ready, so it will timeout. The test is working properly. The only problem is that 10 ms is too strict. For a wide variety of reasons, especially since the Qt CI system runs multiple tests in parallel, the program may not run again in that 10 ms window. Change-Id: Ic0f684895f73646db5f1cc783fe9ef75fb1ab02b Reviewed-by: Qt Doc Bot Reviewed-by: Lars Knoll --- tests/auto/corelib/thread/qsemaphore/tst_qsemaphore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/auto') diff --git a/tests/auto/corelib/thread/qsemaphore/tst_qsemaphore.cpp b/tests/auto/corelib/thread/qsemaphore/tst_qsemaphore.cpp index 884e8718cb..597178f079 100644 --- a/tests/auto/corelib/thread/qsemaphore/tst_qsemaphore.cpp +++ b/tests/auto/corelib/thread/qsemaphore/tst_qsemaphore.cpp @@ -225,7 +225,7 @@ void tst_QSemaphore::tryAcquireWithTimeout() // timers are not guaranteed to be accurate down to the last millisecond, // so we permit the elapsed times to be up to this far from the expected value. - int fuzz = 10; + int fuzz = 50; QSemaphore semaphore; QTime time; -- cgit v1.2.3