AutoTest: Use TestResult as value type

Don't construct it on heap and don't use shared pointer for it.

Change-Id: I51c9da405ed14d24b5f20242b4d049f9e2958f09
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-14 16:25:51 +01:00
parent 3ff5661327
commit d05c5b7d07
54 changed files with 396 additions and 437 deletions

View File

@@ -50,7 +50,7 @@ signals:
void testRunStarted();
void testRunFinished();
void requestStopTestRun();
void testResultReady(const TestResultPtr &result);
void testResultReady(const TestResult &result);
void hadDisabledTests(int disabled);
void reportSummary(const QString &id, const QHash<ResultType, int> &summary);
@@ -76,8 +76,8 @@ private:
bool postponeTestRunWithEmptyExecutable(ProjectExplorer::Project *project);
void onBuildSystemUpdated();
QFutureWatcher<TestResultPtr> m_futureWatcher;
QFutureInterface<TestResultPtr> *m_fakeFutureInterface = nullptr;
QFutureWatcher<TestResult> m_futureWatcher;
QFutureInterface<TestResult> *m_fakeFutureInterface = nullptr;
QList<ITestConfiguration *> m_selectedTests;
bool m_executingTests = false;
bool m_canceled = false;