Make TestRunner more thread-safe

Change-Id: I42e5c9e26a45ef2875cf70e1c5e3b989bcce4de8
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
Christian Stenger
2016-01-18 14:37:32 +01:00
committed by Eike Ziller
parent eca35ce868
commit d0b258a5df
2 changed files with 13 additions and 14 deletions

View File

@@ -22,15 +22,13 @@
#include "autotestconstants.h"
#include <projectexplorer/project.h>
#include <utils/environment.h>
#include <QObject>
#include <QPointer>
#include <QStringList>
namespace ProjectExplorer {
class Project;
}
namespace Autotest {
namespace Internal {
@@ -68,7 +66,7 @@ public:
QString workingDirectory() const { return m_workingDir; }
QString displayName() const { return m_displayName; }
Utils::Environment environment() const { return m_environment; }
ProjectExplorer::Project *project() const { return m_project; }
ProjectExplorer::Project *project() const { return m_project.data(); }
bool unnamedOnly() const { return m_unnamedOnly; }
bool guessedConfiguration() const { return m_guessedConfiguration; }
TestType testType() const { return m_type; }
@@ -85,7 +83,7 @@ private:
QString m_workingDir;
QString m_displayName;
Utils::Environment m_environment;
ProjectExplorer::Project *m_project;
QPointer<ProjectExplorer::Project> m_project;
bool m_guessedConfiguration;
TestType m_type;
};