aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@theqtcompany.com>2015-08-19 13:35:33 +0200
committerDavid Schulz <david.schulz@theqtcompany.com>2015-08-24 07:57:04 +0300
commit3ee77bd119476fbb83c21c78f80659a709221c99 (patch)
treecdfcca6605701155ef3abb86bb6003025b815dad
parent5386fda85145132a37042593a4d48b05f4ea1fdc (diff)
Fix getSelectedTests() for Quick Tests having special functionsat-v3.5.1at-3.5
Quick Tests with special functions (init(), cleanup(),...) must not try to execute these functions explicitly. Change-Id: Ia9a4e9c2788110bb61a70796b0e3a4b9b2091a49 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
-rw-r--r--plugins/autotest/testtreemodel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/autotest/testtreemodel.cpp b/plugins/autotest/testtreemodel.cpp
index 4639cbd1e9..605167c249 100644
--- a/plugins/autotest/testtreemodel.cpp
+++ b/plugins/autotest/testtreemodel.cpp
@@ -475,6 +475,8 @@ QList<TestConfiguration *> TestTreeModel::getSelectedTests() const
int grandChildCount = child->childCount();
for (int grandChildRow = 0; grandChildRow < grandChildCount; ++grandChildRow) {
const TestTreeItem *grandChild = child->child(grandChildRow);
+ if (grandChild->type() != TestTreeItem::TEST_FUNCTION)
+ continue;
if (grandChild->checked() == Qt::Checked)
testFunctions << child->name() + QLatin1String("::") + grandChild->name();
}