forked from qt-creator/qt-creator
AutoTest: Fix handling of data tags in test results
Avoid adding test functions again and put further data tags directly below the respective test function. Change-Id: I29775b836cc4584358ee67b5f07744986c6a6591 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -78,7 +78,8 @@ bool QtTestResult::isDirectParentOf(const TestResult *other, bool *needsIntermed
|
||||
if (!TestResult::isDirectParentOf(other, needsIntermediate))
|
||||
return false;
|
||||
const QtTestResult *qtOther = static_cast<const QtTestResult *>(other);
|
||||
if (result() == Result::MessageTestCaseStart || result() == Result::MessageIntermediate) {
|
||||
|
||||
if (TestResult::isMessageCaseStart(result())) {
|
||||
if (qtOther->isDataTag()) {
|
||||
if (qtOther->m_function == m_function) {
|
||||
if (m_dataTag.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user