diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2023-11-22 14:07:07 +0100 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2023-11-23 09:36:47 +0100 |
commit | 2cfe511a1a049b857d6c201c38bc179c22aa5ad9 (patch) | |
tree | adbde4e2eb0f07abdc62e864fdc7a1681eb305a5 /tests/auto/qml/ecmascripttests | |
parent | c152475b5b20e26d39e4e58a20ca6b672ee89f98 (diff) |
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 <ulf.hermann@qt.io>
Diffstat (limited to 'tests/auto/qml/ecmascripttests')
-rw-r--r-- | tests/auto/qml/ecmascripttests/qjstest/test262runner.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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(); |