CMakeBuildSystem: Run ctest process asynchronously in main thread

Instead of running it in other thread using blocking interface.

Amends 675a72e296

Change-Id: Ia4c7701fa4cd9efea4aeccd979dfb8cde28a889e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Jarek Kobus
2023-01-12 23:32:11 +01:00
parent ea41beb90a
commit bad66c1fc2
2 changed files with 13 additions and 34 deletions

View File

@@ -11,7 +11,6 @@
#include <projectexplorer/buildsystem.h>
#include <utils/fileutils.h>
#include <utils/futuresynchronizer.h>
#include <utils/temporarydirectory.h>
namespace CppEditor { class CppProjectUpdater; }
@@ -19,6 +18,7 @@ namespace ProjectExplorer {
class ExtraCompiler;
class FolderNode;
}
namespace Utils { class QtcProcess; }
namespace CMakeProjectManager {
@@ -206,8 +206,8 @@ private:
// CTest integration
Utils::FilePath m_ctestPath;
std::unique_ptr<Utils::QtcProcess> m_ctestProcess;
QList<ProjectExplorer::TestCaseInfo> m_testNames;
Utils::FutureSynchronizer m_futureSynchronizer;
CMakeConfig m_configurationFromCMake;
CMakeConfig m_configurationChanges;