From 96527507c4ce52d578b15572dc4956e6341a4c4c Mon Sep 17 00:00:00 2001 From: Assam Boudjelthia Date: Tue, 12 Dec 2023 12:49:01 +0200 Subject: [PATCH] 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.5 Change-Id: If56ecaa5b0e3af22b3e26480a584e2d52ac97553 Reviewed-by: Alexandru Croitor (cherry picked from commit f8724b9b7eb22b9abace1a67f652c0b6fc6c683d) Reviewed-by: Qt Cherry-pick Bot (cherry picked from commit 75fc7a7251b421534a5523e565abc257ffe16e99) --- src/tools/androidtestrunner/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tools/androidtestrunner/main.cpp b/src/tools/androidtestrunner/main.cpp index 5a0007cac30..2a995a619b9 100644 --- a/src/tools/androidtestrunner/main.cpp +++ b/src/tools/androidtestrunner/main.cpp @@ -452,6 +452,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()