diff options
author | Assam Boudjelthia <[email protected]> | 2023-12-12 12:49:01 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <[email protected]> | 2023-12-15 05:26:11 +0000 |
commit | aaf79913f769a118c2d8f1c76963dcc8d86ae372 (patch) | |
tree | b5a1a50f72a1ecd6b4e5b2b00638e9428f7d4e29 | |
parent | eb8d1850c7b9468a2e89fb44f5d1e442d1ff5078 (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.
Change-Id: If56ecaa5b0e3af22b3e26480a584e2d52ac97553
Reviewed-by: Alexandru Croitor <[email protected]>
(cherry picked from commit f8724b9b7eb22b9abace1a67f652c0b6fc6c683d)
Reviewed-by: Qt Cherry-pick Bot <[email protected]>
(cherry picked from commit 75fc7a7251b421534a5523e565abc257ffe16e99)
(cherry picked from commit 96527507c4ce52d578b15572dc4956e6341a4c4c)
-rw-r--r-- | src/tools/androidtestrunner/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tools/androidtestrunner/main.cpp b/src/tools/androidtestrunner/main.cpp index 943ed55ef9b..816c064dc3a 100644 --- a/src/tools/androidtestrunner/main.cpp +++ b/src/tools/androidtestrunner/main.cpp @@ -454,6 +454,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() |