From 3ee77bd119476fbb83c21c78f80659a709221c99 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Wed, 19 Aug 2015 13:35:33 +0200 Subject: Fix getSelectedTests() for Quick Tests having special functions Quick Tests with special functions (init(), cleanup(),...) must not try to execute these functions explicitly. Change-Id: Ia9a4e9c2788110bb61a70796b0e3a4b9b2091a49 Reviewed-by: Niels Weber Reviewed-by: David Schulz --- plugins/autotest/testtreemodel.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 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(); } -- cgit v1.2.1