diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qtipc/qsharedmemory/tst_qsharedmemory.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/auto/qtipc/qsharedmemory/tst_qsharedmemory.cpp b/tests/auto/qtipc/qsharedmemory/tst_qsharedmemory.cpp index 18807a0..44f21e8 100644 --- a/tests/auto/qtipc/qsharedmemory/tst_qsharedmemory.cpp +++ b/tests/auto/qtipc/qsharedmemory/tst_qsharedmemory.cpp @@ -710,7 +710,8 @@ void tst_QSharedMemory::simpleThreadedProducerConsumer() p.wait(5000); while (!consumers.isEmpty()) { - QVERIFY(consumers.first()->wait(5000)); + Consumer *c = consumers.first(); + QVERIFY(c->isFinished() || c->wait(5000)); delete consumers.takeFirst(); } } |