AutoTest: Fix run selected for gtests

Change-Id: Ia6f7a4b9b5c1bb359e75d11255246e971fd1f9d2
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
Christian Stenger
2016-06-17 08:58:35 +02:00
committed by David Schulz
parent 0ca1142aae
commit c61fdf99ce

View File

@@ -176,13 +176,11 @@ QList<TestConfiguration *> GTestTreeItem::getAllTestConfigurations() const
const int grandChildCount = child->childCount();
for (int grandChildRow = 0; grandChildRow < grandChildCount; ++grandChildRow) {
const TestTreeItem *grandChild = child->childItem(grandChildRow);
if (grandChild->checked() == Qt::Checked) {
ProFileWithDisplayName key(grandChild->proFile(),
TestUtils::getCMakeDisplayNameIfNecessary(grandChild->filePath(),
grandChild->proFile()));
ProFileWithDisplayName key(grandChild->proFile(),
TestUtils::getCMakeDisplayNameIfNecessary(grandChild->filePath(),
grandChild->proFile()));
proFilesWithTestSets.insert(key, proFilesWithTestSets[key] + 1);
}
proFilesWithTestSets.insert(key, proFilesWithTestSets[key] + 1);
}
}