summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/thread/qmutex/tst_qmutex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/corelib/thread/qmutex/tst_qmutex.cpp')
-rw-r--r--tests/auto/corelib/thread/qmutex/tst_qmutex.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/auto/corelib/thread/qmutex/tst_qmutex.cpp b/tests/auto/corelib/thread/qmutex/tst_qmutex.cpp
index 55b4e0b797..b320a438fa 100644
--- a/tests/auto/corelib/thread/qmutex/tst_qmutex.cpp
+++ b/tests/auto/corelib/thread/qmutex/tst_qmutex.cpp
@@ -610,14 +610,13 @@ void tst_QMutex::tryLockNegative()
QMutex mutex;
TrylockThread thr(mutex, timeout);
- QSignalSpy spy(&thr, SIGNAL(started()));
mutex.lock();
thr.start();
// the thread should have stopped in tryLock(), waiting for us to unlock
// the mutex. The following test can be falsely positive due to timing:
// tryLock may still fail but hasn't failed yet. But it certainly cannot be
- // a false negative: if wait() returns, tryLock failed.
+ // a false negative: if wait() returns true, tryLock failed.
QVERIFY(!thr.wait(200));
// after we unlock the mutex, the thread should succeed in locking, then
@@ -625,7 +624,6 @@ void tst_QMutex::tryLockNegative()
// ~QThread waiting forever on a thread that won't exit.
mutex.unlock();
- QCOMPARE(spy.count(), 1);
QVERIFY(thr.wait());
QCOMPARE(thr.tryLockResult, 1);
}