qt5base-lts/tests/auto/corelib/thread
Rohan McGovern 3ae3aa0e51 Improved stability of tst_qsemaphore (especially on mac)
Timers are not entirely precise; if we ask for a timeout of
10000 milliseconds, we might time out in 9999 instead.
Also, we know the expected elapsed time in each case, so do a fuzzy
comparison against that time.

Previously the test was verifying that the elapsed time was greater than
or equal to the timeout in the case where a timeout was expected, which
means the test would not detect bugs which incorrectly caused the
timeout to occur later than it should.

(cherry picked from qt4 commit 9a2573dc13b3e8df6cd15bef64370ea407480fc7)

Change-Id: I91d0c81f989ab43a3c48f6abbb4c5b28e2b35402
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
2012-02-08 02:10:51 +01:00
..
qatomicint Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qatomicpointer Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qmutex Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qmutexlocker Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qreadlocker Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qreadwritelock Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qsemaphore Improved stability of tst_qsemaphore (especially on mac) 2012-02-08 02:10:51 +01:00
qthread Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qthreadonce Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qthreadpool Move QtConcurrent into its own module 2012-02-05 17:49:16 +01:00
qthreadstorage Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qwaitcondition Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
qwritelocker Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
thread.pro Move QtConcurrent into its own module 2012-02-05 17:49:16 +01:00