From f8724b9b7eb22b9abace1a67f652c0b6fc6c683d 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.7 6.6 6.5 Change-Id: If56ecaa5b0e3af22b3e26480a584e2d52ac97553 Reviewed-by: Alexandru Croitor --- 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 3464f63aef0..9577062a934 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()