forked from qt-creator/qt-creator
AutoTest: Silence soft assert
We synchronize the test tools now earlier and may
not have finished setting up the configuration of
the current project.
This means the project might have no valid target
yet.
Amends 481070d808
.
Change-Id: Ic0c1817318a343e68587930c492397a6094a4ce2
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -407,7 +407,7 @@ void TestTreeModel::synchronizeTestTools()
|
|||||||
if (project) {
|
if (project) {
|
||||||
const QList<Target *> &allTargets = project->targets();
|
const QList<Target *> &allTargets = project->targets();
|
||||||
auto target = allTargets.empty() ? nullptr : allTargets.first();
|
auto target = allTargets.empty() ? nullptr : allTargets.first();
|
||||||
if (QTC_GUARD(target)) {
|
if (target) {
|
||||||
auto bs = target->buildSystem();
|
auto bs = target->buildSystem();
|
||||||
for (ITestTool *testTool : newlyAdded) {
|
for (ITestTool *testTool : newlyAdded) {
|
||||||
ITestTreeItem *rootNode = testTool->rootNode();
|
ITestTreeItem *rootNode = testTool->rootNode();
|
||||||
|
Reference in New Issue
Block a user