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,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();
|
||||||
|
|||||||
Reference in New Issue
Block a user