From a1bc48422fc898496fe9e7e75f0ed74522cd18bc Mon Sep 17 00:00:00 2001 From: David Faure Date: Fri, 15 Mar 2013 23:28:05 +0100 Subject: [PATCH] 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 Reviewed-by: Friedemann Kleint --- tests/auto/corelib/io/qlockfile/tst_qlockfile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/auto/corelib/io/qlockfile/tst_qlockfile.cpp b/tests/auto/corelib/io/qlockfile/tst_qlockfile.cpp index 4aed11a2aa6..c0bf77cfb26 100644 --- a/tests/auto/corelib/io/qlockfile/tst_qlockfile.cpp +++ b/tests/auto/corelib/io/qlockfile/tst_qlockfile.cpp @@ -240,7 +240,7 @@ void tst_QLockFile::staleLockFromCrashedProcess() // tryLock detects and removes the stale lock (since the PID is dead) #ifdef Q_OS_WIN // It can take a bit of time on Windows, though. - QVERIFY(secondLock.tryLock(2000)); + QVERIFY(secondLock.tryLock(30000)); #else QVERIFY(secondLock.tryLock()); #endif