diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2024-04-30 15:53:23 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2024-05-06 13:15:47 +0200 |
commit | 4e0cf9658a28b7d048a016b9d0ab5926964e9a60 (patch) | |
tree | 52aa80e7ffaa104aadfa33c77b678257976d4dd3 /tests | |
parent | df3c82f6af0bf7b857ba7a5110643eb7abe84182 (diff) |
ecmascripttests: Fail test if the test runner crashes
Change-Id: I61c8a24cf25fef98df4ce274fb5f829867059922
Reviewed-by: Semih Yavuz <semih.yavuz@qt.io>
Reviewed-by: Olivier De Cannière <olivier.decanniere@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qml/ecmascripttests/test262runner.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/tests/auto/qml/ecmascripttests/test262runner.cpp b/tests/auto/qml/ecmascripttests/test262runner.cpp index 90ac10a38b..dc6d660e3d 100644 --- a/tests/auto/qml/ecmascripttests/test262runner.cpp +++ b/tests/auto/qml/ecmascripttests/test262runner.cpp @@ -222,10 +222,20 @@ void Test262Runner::createProcesses() } }); - QObject::connect(&p, &QProcess::finished, this, [&, i](int, QProcess::ExitStatus status) { + QObject::connect(&p, &QProcess::finished, this, + [this, processCount, i](int, QProcess::ExitStatus status) { if (status != QProcess::NormalExit) { - qDebug() << QStringLiteral("Process %1 of %2 exited with a non-normal status") - .arg(i).arg(processCount - 1); + TestData &testData(currentTasks[i]); + + auto &result = testData.stillNeedStrictRun + ? testData.sloppyResult + : testData.strictResult; + result = TestCase::Result( + TestCase::Crashes, + QStringLiteral("Process %1 of %2 exited with a non-normal status") + .arg(i).arg(processCount - 1)); + + addResult(testData); } --runningCount; |