forked from qt-creator/qt-creator
AutoTest: Move creation of DebuggerRunTool to safe place
Change-Id: I11aeba477b741717fa65b816ee3fad3f00b9b1d0 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
committed by
Christian Stenger
parent
5820fbec63
commit
dabab693e9
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user