forked from qt-creator/qt-creator
AutoTest: Fix run selected for gtests
Change-Id: Ia6f7a4b9b5c1bb359e75d11255246e971fd1f9d2 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
committed by
David Schulz
parent
0ca1142aae
commit
c61fdf99ce
@@ -176,13 +176,11 @@ QList<TestConfiguration *> GTestTreeItem::getAllTestConfigurations() const
|
|||||||
const int grandChildCount = child->childCount();
|
const int grandChildCount = child->childCount();
|
||||||
for (int grandChildRow = 0; grandChildRow < grandChildCount; ++grandChildRow) {
|
for (int grandChildRow = 0; grandChildRow < grandChildCount; ++grandChildRow) {
|
||||||
const TestTreeItem *grandChild = child->childItem(grandChildRow);
|
const TestTreeItem *grandChild = child->childItem(grandChildRow);
|
||||||
if (grandChild->checked() == Qt::Checked) {
|
ProFileWithDisplayName key(grandChild->proFile(),
|
||||||
ProFileWithDisplayName key(grandChild->proFile(),
|
TestUtils::getCMakeDisplayNameIfNecessary(grandChild->filePath(),
|
||||||
TestUtils::getCMakeDisplayNameIfNecessary(grandChild->filePath(),
|
grandChild->proFile()));
|
||||||
grandChild->proFile()));
|
|
||||||
|
|
||||||
proFilesWithTestSets.insert(key, proFilesWithTestSets[key] + 1);
|
proFilesWithTestSets.insert(key, proFilesWithTestSets[key] + 1);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user