forked from qt-creator/qt-creator
AutoTest: Fix Run Under Cursor for GTest
Broke while introducing TestSuite and following the
official terms.
Amends 6189745a3b
.
Fixes: QTCREATORBUG-23068
Change-Id: I02a8c72debface1e15b2e1901ec6115e210a0312
Reviewed-by: pawelrutka <prutka13@gmail.com>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -178,7 +178,8 @@ QList<TestTreeItem *> TestTreeModel::testItemsByName(TestTreeItem *root, const Q
|
||||
}
|
||||
TestTreeItem *testCase = node->findFirstLevelChild([&testName](TestTreeItem *it) {
|
||||
QTC_ASSERT(it, return false);
|
||||
return it->type() == TestTreeItem::TestFunction && it->name() == testName;
|
||||
return (it->type() == TestTreeItem::TestCase
|
||||
|| it->type() == TestTreeItem::TestFunction) && it->name() == testName;
|
||||
}); // collect only actual tests, not special functions like init, cleanup etc.
|
||||
if (testCase)
|
||||
result << testCase;
|
||||
|
Reference in New Issue
Block a user