diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2011-11-03 10:10:44 (GMT) |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-09 23:18:31 (GMT) |
commit | 42004eccf246cbc110f0ad22caa85efeeeb640bb (patch) | |
tree | 53537c212e8f03a53023d993d9760f157f9b9744 /examples/script | |
parent | a903d59b9a353d10862dd975db11b1b3d132bdf5 (diff) | |
download | Qt-42004eccf246cbc110f0ad22caa85efeeeb640bb.zip Qt-42004eccf246cbc110f0ad22caa85efeeeb640bb.tar.gz Qt-42004eccf246cbc110f0ad22caa85efeeeb640bb.tar.bz2 |
Fix unstable test due to a race in QThread
QThread::finished() is emitted before setting the thread's state to
finished and !running, which means it's possible to receive the
finished() signal and act on it while QThread::isRunning() still
returns true.
This test randomly fails due to this race. Fix it by using checking
the return value of QThread::wait() instead.
Change-Id: Ibf347fc9a2e8d32b328227ee6978e1129dd781f4
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit faa6113c41b81368c5bbc2a764c2ae9bbc42e415)
Diffstat (limited to 'examples/script')
0 files changed, 0 insertions, 0 deletions