From 2cfe511a1a049b857d6c201c38bc179c22aa5ad9 Mon Sep 17 00:00:00 2001 From: Fabian Kosmale Date: Wed, 22 Nov 2023 14:07:07 +0100 Subject: tst_ecmascripttests: Add a heartbeat message The test sometimes gets killed, because it runs for a very long time without any output. Avoid that by peridoically printing a heartbeat message. Change-Id: Ib39f75ce1ab9e38b6390ead64b729eb82095ba5d Reviewed-by: Ulf Hermann --- tests/auto/qml/ecmascripttests/qjstest/test262runner.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests/auto/qml/ecmascripttests') diff --git a/tests/auto/qml/ecmascripttests/qjstest/test262runner.cpp b/tests/auto/qml/ecmascripttests/qjstest/test262runner.cpp index fc09182f19..f7c1a21c74 100644 --- a/tests/auto/qml/ecmascripttests/qjstest/test262runner.cpp +++ b/tests/auto/qml/ecmascripttests/qjstest/test262runner.cpp @@ -143,7 +143,12 @@ bool Test262Runner::run() } if (threadPool) - threadPool->waitForDone(); + while (!threadPool->waitForDone(10000)) { + if (!lcJsTest().isEnabled(QtDebugMsg)) { + // heartbeat, only needed when there is no other debug output + qDebug("test262: in progress..."); + } + } const bool testsOk = report(); -- cgit v1.2.3