diff options
author | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2023-12-12 12:49:01 +0200 |
---|---|---|
committer | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2023-12-13 20:52:16 +0200 |
commit | f8724b9b7eb22b9abace1a67f652c0b6fc6c683d (patch) | |
tree | e49dbd0fcea06975569a7d3218d101600538d47a /src/tools | |
parent | 4a3936c33cb2ab9fee2e93cbe99d31daf1cd0cc8 (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.cpp | 3 |
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() |