AutoTest: Fix handling of multiple fails of tests

Broke with d05c5b7d07.

Fixes: QTCREATORBUG-29146
Change-Id: If7cc7f943c16113785a21b661a545e00331f1dcd
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2023-05-12 08:16:11 +02:00
parent 7960c1f3f6
commit 979f938aa5

View File

@@ -210,7 +210,7 @@ void GTestOutputReader::handleDescriptionAndReportResult(const TestResult &testR
}
}
result.setDescription(resultDescription.join('\n'));
reportResult(testResult);
reportResult(result);
resultDescription.clear();
result = createDefaultResult();