summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2022-07-04 10:02:46 +0200
committerEike Ziller <eike.ziller@qt.io>2022-07-05 07:24:34 +0000
commit5d3b8c4d887a020a08289a512aa867fad3955ab6 (patch)
treee779bab06bd44a9f3872e5dcf224bdb4b3ba1e7d /tests
parent946d08c6fdb8b66e47d450c517a775633d5c564c (diff)
downloadqt-creator-5d3b8c4d887a020a08289a512aa867fad3955ab6.tar.gz
tst_QtcProcess::crashAfterOneSecond(): Increase the timeout
Increase the timeout to default 30 seconds when waiting for finished. Apparently 2 seconds were sometimes too short. We still ensure that waitForFinished didn't timeout but finished eariler. Change-Id: I12ca647b45537174c7c66d271e7c8a477184f2ff Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/utils/qtcprocess/tst_qtcprocess.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/utils/qtcprocess/tst_qtcprocess.cpp b/tests/auto/utils/qtcprocess/tst_qtcprocess.cpp
index c422b690d1..1294774e3a 100644
--- a/tests/auto/utils/qtcprocess/tst_qtcprocess.cpp
+++ b/tests/auto/utils/qtcprocess/tst_qtcprocess.cpp
@@ -1208,8 +1208,8 @@ void tst_QtcProcess::crashAfterOneSecond()
timer.start();
// Please note that QProcess documentation says it should return false, but apparently
// it doesn't (try running this test with QTC_USE_QPROCESS=)
- QVERIFY(process.waitForFinished(2000));
- QVERIFY(timer.elapsed() < 2000);
+ QVERIFY(process.waitForFinished(30000));
+ QVERIFY(timer.elapsed() < 30000);
QCOMPARE(process.state(), QProcess::NotRunning);
QCOMPARE(process.error(), QProcess::Crashed);
}