forked from qt-creator/qt-creator
ClangStaticAnalyzer: Tests: Fix switching startup project
Change-Id: Ia29a8082a7c7764e7a426ce121c17c80b334d84d Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -199,7 +199,9 @@ bool ClangStaticAnalyzerPreconfiguredSessionTests::switchToProjectAndTarget(Proj
|
|||||||
QSignalSpy waitUntilProjectUpdated(CppModelManager::instance(),
|
QSignalSpy waitUntilProjectUpdated(CppModelManager::instance(),
|
||||||
&CppModelManager::projectPartsUpdated);
|
&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);
|
const bool waitResult = waitUntilProjectUpdated.wait(30000);
|
||||||
if (!waitResult) {
|
if (!waitResult) {
|
||||||
|
|||||||
Reference in New Issue
Block a user