forked from qt-creator/qt-creator
ProjectExplorer: Split RunControl constructor
Into a trivial bit and two setters. Plan is to use it only with information that is truly there (e.g. kit/device only) at the user side without having to invent a RunConfiguration "handle". Also remove some dead code in the test runner. Change-Id: I987881e41722178b14b91f973b84cbdb67a9f85e Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -541,14 +541,8 @@ void TestRunner::debugTests()
|
||||
}
|
||||
|
||||
QString errorMessage;
|
||||
auto runControl = new ProjectExplorer::RunControl(config->runConfiguration(),
|
||||
ProjectExplorer::Constants::DEBUG_RUN_MODE);
|
||||
if (!runControl) {
|
||||
emit testResultReady(TestResultPtr(new FaultyTestResult(Result::MessageFatal,
|
||||
TestRunner::tr("Failed to create run configuration.\n%1").arg(errorMessage))));
|
||||
onFinished();
|
||||
return;
|
||||
}
|
||||
auto runControl = new ProjectExplorer::RunControl(ProjectExplorer::Constants::DEBUG_RUN_MODE);
|
||||
runControl->setRunConfiguration(config->runConfiguration());
|
||||
|
||||
QStringList omitted;
|
||||
ProjectExplorer::Runnable inferior = config->runnable();
|
||||
|
||||
Reference in New Issue
Block a user