forked from qt-creator/qt-creator
		
	AutoTest: Use new setter based DebuggerRunTool interface
Change-Id: I559bef1b088af9009247542730208d18b514b118 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
		@@ -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()) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user