AutoTest: Use new setter based DebuggerRunTool interface

Change-Id: I559bef1b088af9009247542730208d18b514b118
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2017-08-24 16:04:25 +02:00
committed by Christian Stenger
parent d34f33d8d7
commit 503a73d527
3 changed files with 15 additions and 8 deletions

View File

@@ -330,13 +330,6 @@ void TestRunner::debugTests()
return;
}
Debugger::DebuggerStartParameters sp;
sp.inferior.executable = commandFilePath;
sp.inferior.commandLineArguments = config->argumentsForTestRunner().join(' ');
sp.inferior.environment = config->environment();
sp.inferior.workingDirectory = config->workingDirectory();
sp.displayName = config->displayName();
QString errorMessage;
auto runControl = new ProjectExplorer::RunControl(config->runConfiguration(),
ProjectExplorer::Constants::DEBUG_RUN_MODE);
@@ -347,7 +340,15 @@ void TestRunner::debugTests()
return;
}
(void) new Debugger::DebuggerRunTool(runControl, sp);
ProjectExplorer::StandardRunnable inferior;
inferior.executable = commandFilePath;
inferior.commandLineArguments = config->argumentsForTestRunner().join(' ');
inferior.environment = config->environment();
inferior.workingDirectory = config->workingDirectory();
auto debugger = new Debugger::DebuggerRunTool(runControl);
debugger->setInferior(inferior);
debugger->setRunControlName(config->displayName());
bool useOutputProcessor = true;
if (ProjectExplorer::Target *targ = config->project()->activeTarget()) {