summaryrefslogtreecommitdiffstats
path: root/tests/auto/qthread
diff options
context:
space:
mode:
authorOlivier Goffart <olivier.goffart@nokia.com>2010-11-22 20:37:18 +0100
committerOlivier Goffart <olivier.goffart@nokia.com>2010-11-22 20:39:00 +0100
commit37f4e51127081f393743b5023f61ec48674cf7a2 (patch)
tree3cab5241c6189b8b2f157fde87ac1ca2352068dc /tests/auto/qthread
parent41456794ccd80bbd683ed19354f6e6d97c45681b (diff)
tst_qthread: fix compilation
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;