Stabilize tst_QProcess::softExitInSlots()

This test takes more than 5000ms to finish some times, so waiting
for 10000ms should be enough to make it more stable on all
platforms.

  ../tst_qprocess.cpp:1072 :: [gui app]
  QTestLib: This test case check ("proc.waitedForFinished") failed because the requested timeout (5000 ms) was too short, 6150 ms would have been sufficient this time.

Change-Id: I266ad0e65bf3c84e73b7ca6543dc15335dad4c99
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
bb10
Sergio Ahumada 2014-03-20 17:47:25 +01:00 committed by The Qt Project
parent 5ee07bf691
commit eab7efd1ee
1 changed files with 1 additions and 1 deletions

View File

@ -1069,7 +1069,7 @@ void tst_QProcess::softExitInSlots()
SoftExitProcess proc(i);
proc.writeAfterStart("OLEBOLE", 8); // include the \0
proc.start(appName);
QTRY_VERIFY(proc.waitedForFinished);
QTRY_VERIFY_WITH_TIMEOUT(proc.waitedForFinished, 10000);
QCOMPARE(proc.state(), QProcess::NotRunning);
}
}