forked from qt-creator/qt-creator
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:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user