summaryrefslogtreecommitdiffstats
path: root/tests/auto/qthread
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qthread')
-rw-r--r--tests/auto/qthread/tst_qthread.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qthread/tst_qthread.cpp b/tests/auto/qthread/tst_qthread.cpp
index 85b8f0419f..b0efb5a869 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;