Fix tst_qthreadstorage
This test when running on Windows has a race condition since in qthread_win.cpp the finished signal is emitted before everything is cleaned up. Change-Id: I3c03d9a245e297e8f79b2be2c34398bf7bac9bae Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@theqtcompany.com>bb10
parent
d53695501a
commit
493d08aeea
|
|
@ -240,7 +240,7 @@ void tst_QThreadStorage::adoptedThreads()
|
|||
QTestEventLoop::instance().enterLoop(2);
|
||||
QVERIFY(!QTestEventLoop::instance().timeout());
|
||||
|
||||
QCOMPARE(Pointer::count, c);
|
||||
QTRY_COMPARE(Pointer::count, c);
|
||||
}
|
||||
|
||||
QBasicAtomicInt cleanupOrder = Q_BASIC_ATOMIC_INITIALIZER(0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue