diff options
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qthread/tst_qthread.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qthread/tst_qthread.cpp b/tests/auto/qthread/tst_qthread.cpp index 85b8f04..b0efb5a 100644 --- a/tests/auto/qthread/tst_qthread.cpp +++ b/tests/auto/qthread/tst_qthread.cpp @@ -997,7 +997,8 @@ void tst_QThread::QTBUG15378_exitAndExec() thread.exit(556); thread.sem1.release(); //should exit the first loop thread.sem2.acquire(); - QCOMPARE(int(thread.value), 556); + int v = thread.value; + QCOMPARE(v, 556); //test that the thread is running by executing queued connected signal there Syncronizer sync1; |