AutoTest: Move creation of DebuggerRunTool to safe place

Change-Id: I11aeba477b741717fa65b816ee3fad3f00b9b1d0
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Robert Loehning
2017-05-26 17:40:30 +02:00
committed by Christian Stenger
parent 5820fbec63
commit dabab693e9

View File

@@ -338,8 +338,6 @@ void TestRunner::debugTests()
QString errorMessage;
auto runControl = new ProjectExplorer::RunControl(config->runConfiguration(),
ProjectExplorer::Constants::DEBUG_RUN_MODE);
(void) new Debugger::DebuggerRunTool(runControl, sp, &errorMessage);
if (!runControl) {
emit testResultReady(TestResultPtr(new FaultyTestResult(Result::MessageFatal,
TestRunner::tr("Failed to create run configuration.\n%1").arg(errorMessage))));
@@ -347,6 +345,8 @@ void TestRunner::debugTests()
return;
}
(void) new Debugger::DebuggerRunTool(runControl, sp, &errorMessage);
bool useOutputProcessor = true;
if (ProjectExplorer::Target *targ = config->project()->activeTarget()) {
if (Debugger::DebuggerKitInformation::engineType(targ->kit()) == Debugger::CdbEngineType) {