AutoTest: Fix handling of internal messages after disabled tests

Internal messages which came right after the message of disabled
tests got the wrong parent and therefore had never been displayed.

Change-Id: Ibfdf75ae720b31149b6fdf2eb625814690aa9a53
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Stenger
2019-04-04 14:15:39 +02:00
parent efbe62b389
commit f001836c5e

View File

@@ -68,6 +68,8 @@ bool GTestResult::isDirectParentOf(const TestResult *other, bool *needsIntermedi
if (!TestResult::isDirectParentOf(other, needsIntermediate)) if (!TestResult::isDirectParentOf(other, needsIntermediate))
return false; return false;
if (result() == Result::MessageDisabledTests)
return false;
const GTestResult *gtOther = static_cast<const GTestResult *>(other); const GTestResult *gtOther = static_cast<const GTestResult *>(other);
if (m_testSetName == gtOther->m_testSetName) { if (m_testSetName == gtOther->m_testSetName) {
const Result::Type otherResult = other->result(); const Result::Type otherResult = other->result();