Commit 9cde684e authored by Nikolai Kosjar's avatar Nikolai Kosjar

ClangStaticAnalyzer: Tests: Fix switching startup project

Change-Id: Ia29a8082a7c7764e7a426ce121c17c80b334d84d
Reviewed-by: Tobias Hunger's avatarTobias Hunger <tobias.hunger@qt.io>
parent 7550d897
......@@ -199,7 +199,9 @@ bool ClangStaticAnalyzerPreconfiguredSessionTests::switchToProjectAndTarget(Proj
QSignalSpy waitUntilProjectUpdated(CppModelManager::instance(),
&CppModelManager::projectPartsUpdated);
m_sessionManager.setActiveTarget(project, target, ProjectExplorer::SetActive::Cascade);
if (project != activeProject)
m_sessionManager.setStartupProject(project);
m_sessionManager.setActiveTarget(project, target, ProjectExplorer::SetActive::NoCascade);
const bool waitResult = waitUntilProjectUpdated.wait(30000);
if (!waitResult) {
......
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