aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotest/quick
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2020-07-01 17:01:10 +0200
committerChristian Stenger <christian.stenger@qt.io>2020-07-10 05:06:58 +0000
commit502ad9badb73119fccea48c9c19413dea1e87493 (patch)
tree269e6c0d3b68fbc560e468157ffbfafe6b10ccc3 /src/plugins/autotest/quick
parentcd1a848e16c400d5d32bda2fb1eaf0f99e25f9da (diff)
AutoTest: Correct completing test run configuration
Ensure all possible project parts are taken into account when gathering build system targets. When having multiple possible build system targets for a test - which may easily happen e.g. when defining tests beside the main application inside a big top-level CMakeLists.txt - let the user decide which one to run. Fixes: QTCREATORBUG-24268 Change-Id: Ia7b7e4148fe8e8dab55832c435f12cc78f5c2f7a Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/autotest/quick')
-rw-r--r--src/plugins/autotest/quick/quicktesttreeitem.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/autotest/quick/quicktesttreeitem.cpp b/src/plugins/autotest/quick/quicktesttreeitem.cpp
index 5274a270993..5c6cf57aa93 100644
--- a/src/plugins/autotest/quick/quicktesttreeitem.cpp
+++ b/src/plugins/autotest/quick/quicktesttreeitem.cpp
@@ -420,10 +420,8 @@ QSet<QString> QuickTestTreeItem::internalTargets() const
for (const CppTools::ProjectPart::Ptr &projectPart : projectInfo.projectParts()) {
if (projectPart->buildTargetType != ProjectExplorer::BuildTargetType::Executable)
continue;
- if (projectPart->projectFile == proFile()) {
+ if (projectPart->projectFile == proFile())
result.insert(projectPart->buildSystemTarget);
- break;
- }
}
return result;
}