qt5base-lts/tests/auto/corelib/thread/qfuturewatcher
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
..
.gitignore Move QFutureWatcher back to QtCore 2012-09-28 23:50:10 +02:00
qfuturewatcher.pro Move QFutureWatcher back to QtCore 2012-09-28 23:50:10 +02:00
tst_qfuturewatcher.cpp Fix pauseEvents() test to test what should be true, not what is. 2015-11-02 09:40:32 +00:00