summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authorAssam Boudjelthia <assam.boudjelthia@qt.io>2023-12-12 12:49:01 +0200
committerAssam Boudjelthia <assam.boudjelthia@qt.io>2023-12-13 20:52:16 +0200
commitf8724b9b7eb22b9abace1a67f652c0b6fc6c683d (patch)
treee49dbd0fcea06975569a7d3218d101600538d47a /src/tools
parent4a3936c33cb2ab9fee2e93cbe99d31daf1cd0cc8 (diff)
AndroidTestRunner: log when timing out waiting for the test to finish
Leave a log message to know when the test runner timed out or the test finished. Pick-to: 6.7 6.6 6.5 Change-Id: If56ecaa5b0e3af22b3e26480a584e2d52ac97553 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/androidtestrunner/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tools/androidtestrunner/main.cpp b/src/tools/androidtestrunner/main.cpp
index 3464f63aef..9577062a93 100644
--- a/src/tools/androidtestrunner/main.cpp
+++ b/src/tools/androidtestrunner/main.cpp
@@ -470,6 +470,9 @@ static void waitForStartedAndFinished()
break;
QThread::msleep(250);
} while (!finishedDeadline.hasExpired() && !isTestRunnerInterrupted.load());
+
+ if (finishedDeadline.hasExpired())
+ qWarning() << "Timed out while waiting for the test to finish";
}
static void obtainSdkVersion()