forked from qt-creator/qt-creator
AutoTest: Create tree item for each failure
Introduce special location item for this purpose. Task-number: QTCREATORBUG-20967 Change-Id: Icb6c6ec8ff9d2e4e8e3d13834427bae50d74bd2a Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -69,8 +69,11 @@ bool GTestResult::isDirectParentOf(const TestResult *other, bool *needsIntermedi
|
||||
return false;
|
||||
|
||||
const GTestResult *gtOther = static_cast<const GTestResult *>(other);
|
||||
if (m_testSetName == gtOther->m_testSetName && other->result() == Result::MessageInternal)
|
||||
return true;
|
||||
if (m_testSetName == gtOther->m_testSetName) {
|
||||
const Result::Type otherResult = other->result();
|
||||
if (otherResult == Result::MessageInternal || otherResult == Result::MessageLocation)
|
||||
return result() != Result::MessageLocation;
|
||||
}
|
||||
if (m_iteration != gtOther->m_iteration)
|
||||
return false;
|
||||
return isTest() && gtOther->isTestSet();
|
||||
|
||||
Reference in New Issue
Block a user