From c911be190fe7ee5a05a3424b95076fb06c70e3bc Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Mon, 27 May 2019 09:07:40 +0200 Subject: [PATCH] AutoTest: Fix handling of test output messages Send all results after they have been created instead of relying on having some further output that might send an old result that had been created but not sent yet. Change-Id: I0c64b702712509264ee5e86a6af15d6411839f43 Reviewed-by: David Schulz --- src/plugins/autotest/boost/boosttestoutputreader.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/autotest/boost/boosttestoutputreader.cpp b/src/plugins/autotest/boost/boosttestoutputreader.cpp index c174fe3b595..03699e92dff 100644 --- a/src/plugins/autotest/boost/boosttestoutputreader.cpp +++ b/src/plugins/autotest/boost/boosttestoutputreader.cpp @@ -117,9 +117,6 @@ void BoostTestOutputReader::sendCompleteInformation() void BoostTestOutputReader::handleMessageMatch(const QRegularExpressionMatch &match) { - if (m_result != ResultType::Invalid) - sendCompleteInformation(); - m_fileName = constructSourceFilePath(m_buildDir, match.captured(1)); m_lineNumber = match.captured(2).toInt(); @@ -176,6 +173,9 @@ void BoostTestOutputReader::handleMessageMatch(const QRegularExpressionMatch &ma m_result = ResultType::Skip; m_description = content; } + + if (m_result != ResultType::Invalid) // we got a new result + sendCompleteInformation(); } void BoostTestOutputReader::processOutputLine(const QByteArray &outputLineWithNewLine)