forked from qt-creator/qt-creator
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 <david.schulz@qt.io>
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user