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,7 +176,6 @@ 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()));
@@ -184,7 +183,6 @@ QList<TestConfiguration *> GTestTreeItem::getAllTestConfigurations() const
proFilesWithTestSets.insert(key, proFilesWithTestSets[key] + 1); proFilesWithTestSets.insert(key, proFilesWithTestSets[key] + 1);
} }
} }
}
QHash<ProFileWithDisplayName, int>::ConstIterator it = proFilesWithTestSets.begin(); QHash<ProFileWithDisplayName, int>::ConstIterator it = proFilesWithTestSets.begin();
QHash<ProFileWithDisplayName, int>::ConstIterator end = proFilesWithTestSets.end(); QHash<ProFileWithDisplayName, int>::ConstIterator end = proFilesWithTestSets.end();