diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2016-06-08 13:56:18 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2016-06-10 08:55:11 +0000 |
commit | 98207ae02056eca9be4b4e64af7892417078b71b (patch) | |
tree | 3c82ae5833720335b15d267dbe7072fd9ce81d8b /src/plugins/qmlprofiler/tests | |
parent | fd3d5d30d8e99f2e18da0370fddc2825e81e0a43 (diff) | |
download | qt-creator-98207ae02056eca9be4b4e64af7892417078b71b.tar.gz |
QmlProfiler: Give test processes some more time to start and stop
Change-Id: I144ee2201feba2d635d1b8af4f6afac78aecdf3a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
Diffstat (limited to 'src/plugins/qmlprofiler/tests')
-rw-r--r-- | src/plugins/qmlprofiler/tests/localqmlprofilerrunner_test.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/qmlprofiler/tests/localqmlprofilerrunner_test.cpp b/src/plugins/qmlprofiler/tests/localqmlprofilerrunner_test.cpp index 8119b75afa..3606c8c2cf 100644 --- a/src/plugins/qmlprofiler/tests/localqmlprofilerrunner_test.cpp +++ b/src/plugins/qmlprofiler/tests/localqmlprofilerrunner_test.cpp @@ -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; |