qt6-bb10/tests/auto/corelib/thread
Edward Welbourne ab1a5f1003 Fix pauseEvents() test to test what should be true, not what is.
If the future is finished when a watcher starts watching it, it is
perfectly reasonable for the watcher to get the finished message
promptly.  If you pause the watcher before any message loops get to
run, the message presently won't get through until the watcher is
resumed, but there is no reason to guarantee that; indeed, one could
consider it somewhat perverse behavior.

So move the reportFinished() calls to after the pause()s.
Also eliminate a used-once local variable and use QTRY_VERIFY() in one
place where qWait() was used before.

Change-Id: I4bc6091fd7437a4d341be511b7a140f3d72d850e
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
2015-11-02 09:40:32 +00:00
..
qatomicint Tests: Do not rely on qCompare(bool, int,...). 2015-07-18 10:36:17 +00:00
qatomicinteger Make the C++11 atomic support the default, if available 2015-10-16 18:52:00 +00:00
qatomicpointer Update copyright headers 2015-02-11 06:49:51 +00:00
qfuture Tests: Replace Q[TRY]_VERIFY(v == true|false) by QVERIFY(v)|QVERIFY(!v). 2015-07-27 12:09:19 +00:00
qfuturesynchronizer Update copyright headers 2015-02-11 06:49:51 +00:00
qfuturewatcher Fix pauseEvents() test to test what should be true, not what is. 2015-11-02 09:40:32 +00:00
qmutex Update copyright headers 2015-02-11 06:49:51 +00:00
qmutexlocker Update copyright headers 2015-02-11 06:49:51 +00:00
qreadlocker Update copyright headers 2015-02-11 06:49:51 +00:00
qreadwritelock Update copyright headers 2015-02-11 06:49:51 +00:00
qresultstore Update copyright headers 2015-02-11 06:49:51 +00:00
qsemaphore Blacklist tryAcquireWithTimeout 2015-06-20 15:25:35 +00:00
qthread Merge remote-tracking branch 'origin/5.5' into dev 2015-07-01 11:05:26 +02:00
qthreadonce Update copyright headers 2015-02-11 06:49:51 +00:00
qthreadpool Blacklist and skip various tests that are flakey 2015-06-14 10:50:45 +00:00
qthreadstorage Fix tst_qthreadstorage 2015-09-24 07:34:06 +00:00
qwaitcondition Update copyright headers 2015-02-11 06:49:51 +00:00
qwritelocker Update copyright headers 2015-02-11 06:49:51 +00:00
thread.pro Replace the type-based QAtomicIntegerTraits with a size-based one 2014-01-30 18:06:27 +01:00