Commit 3ee77bd1 authored by Christian Stenger's avatar Christian Stenger Committed by David Schulz

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: 's avatarNiels Weber <niels.weber@theqtcompany.com>
Reviewed-by: 's avatarDavid Schulz <david.schulz@theqtcompany.com>
parent 5386fda8
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment