Commit 98207ae0 authored by Ulf Hermann's avatar Ulf Hermann

QmlProfiler: Give test processes some more time to start and stop

Change-Id: I144ee2201feba2d635d1b8af4f6afac78aecdf3a
Reviewed-by: Christian Stenger's avatarChristian Stenger <christian.stenger@qt.io>
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@theqtcompany.com>
parent fd3d5d30
......@@ -72,8 +72,8 @@ void LocalQmlProfilerRunnerTest::testRunner()
rc->start();
QTRY_COMPARE(runCount, 1);
QTRY_VERIFY(!running);
QTRY_COMPARE_WITH_TIMEOUT(runCount, 1, 10000);
QTRY_VERIFY_WITH_TIMEOUT(!running, 10000);
QCOMPARE(errors, 1);
configuration.debuggee.environment = Utils::Environment::systemEnvironment();
......@@ -88,8 +88,8 @@ void LocalQmlProfilerRunnerTest::testRunner()
connectRunner();
rc->start();
QTRY_COMPARE(runCount, 2);
QTRY_VERIFY(!running);
QTRY_COMPARE_WITH_TIMEOUT(runCount, 2, 10000);
QTRY_VERIFY_WITH_TIMEOUT(!running, 10000);
QCOMPARE(errors, 1);
delete rc;
......@@ -102,13 +102,13 @@ void LocalQmlProfilerRunnerTest::testRunner()
connectRunner();
rc->start();
QTRY_COMPARE(runCount, 3);
QTRY_COMPARE_WITH_TIMEOUT(runCount, 3, 10000);
QTest::qWait(1000);
QVERIFY(running);
QVERIFY(running); // verify it doesn't spontaneously stop
QCOMPARE(errors, 1);
rc->stop();
QTRY_VERIFY(!running);
QTRY_VERIFY_WITH_TIMEOUT(!running, 10000);
QCOMPARE(errors, 2); // "The program has unexpectedly finished."
delete rc;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment