Skip to content
Snippets Groups Projects
Commit 3ee77bd1 authored by Christian Stenger's avatar Christian Stenger Committed by David Schulz
Browse files

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: default avatarNiels Weber <niels.weber@theqtcompany.com>
Reviewed-by: default avatarDavid Schulz <david.schulz@theqtcompany.com>
parent 5386fda8
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment