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>
This commit is contained in:
Assam Boudjelthia 2023-12-12 12:49:01 +02:00
parent 4a3936c33c
commit f8724b9b7e

View File

@ -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()