tst_qlockfile: increase delay on Windows.

OpenProcess + WaitForSingleObject is supposed to fail after the process exits,
but this seems to take some time until Windows notices.

Change-Id: I942a9b4a458c23fc4ac33b28386e28821128e991
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
David Faure 2013-03-15 23:28:05 +01:00 committed by The Qt Project
parent 0ef4a55014
commit a1bc48422f

View File

@ -240,7 +240,7 @@ void tst_QLockFile::staleLockFromCrashedProcess()
// tryLock detects and removes the stale lock (since the PID is dead) // tryLock detects and removes the stale lock (since the PID is dead)
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
// It can take a bit of time on Windows, though. // It can take a bit of time on Windows, though.
QVERIFY(secondLock.tryLock(2000)); QVERIFY(secondLock.tryLock(30000));
#else #else
QVERIFY(secondLock.tryLock()); QVERIFY(secondLock.tryLock());
#endif #endif