From cb2febdaae383928c9a6c640aac49dcdf65af985 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Mon, 21 Jun 2021 09:36:15 +0200 Subject: [PATCH] AutoTest: Support messages from death tests Do not omit messages from death tests as they can be essential to figure out what went wrong. Fixes: QTCREATORBUG-25888 Change-Id: I30bc9856ae952dc30f4002a5bbc98245a524fae7 Reviewed-by: David Schulz --- src/plugins/autotest/gtest/gtestoutputreader.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/autotest/gtest/gtestoutputreader.cpp b/src/plugins/autotest/gtest/gtestoutputreader.cpp index 4bc93690bc9..8dfa0c0ef41 100644 --- a/src/plugins/autotest/gtest/gtestoutputreader.cpp +++ b/src/plugins/autotest/gtest/gtestoutputreader.cpp @@ -64,6 +64,7 @@ void GTestOutputReader::processOutputLine(const QByteArray &outputLine) static const QRegularExpression newTestSetStarts("^\\[ RUN \\] (.*)$"); static const QRegularExpression testSetSuccess("^\\[ OK \\] (.*) \\((.*)\\)$"); static const QRegularExpression testSetFail("^\\[ FAILED \\] (.*) \\((\\d+ ms)\\)$"); + static const QRegularExpression testDeath("^\\[ DEATH \\] (.*)$"); static const QRegularExpression testSetSkipped("^\\[ SKIPPED \\] (.*) \\((\\d+ ms)\\)$"); static const QRegularExpression disabledTests("^ YOU HAVE (\\d+) DISABLED TESTS?$"); static const QRegularExpression iterations("^Repeating all tests " @@ -182,6 +183,9 @@ void GTestOutputReader::processOutputLine(const QByteArray &outputLine) testResult->setFileName(file); testResult->setDescription(match.captured(4)); reportResult(testResult); + } else if (ExactMatch match = testDeath.match(line)) { + m_description.append(line); + m_description.append('\n'); } }