Debugger: Remove convenience DebuggerRunTool constructors

Use setRunParameters() for now, and individual setters later.

Change-Id: If7d044ea249b79ce117897a976659e9302bfc544
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
hjk
2017-09-08 15:36:13 +02:00
parent 440f2ba028
commit e44d16e3de
4 changed files with 10 additions and 29 deletions

View File

@@ -3710,14 +3710,13 @@ void DebuggerUnitTests::testStateMachine()
rp.inferior = rc->runnable().as<StandardRunnable>();
rp.testCase = TestNoBoundsOfCurrentFunction;
auto runControl = new RunControl(rc, ProjectExplorer::Constants::DEBUG_RUN_MODE);
auto runTool = new DebuggerRunTool(runControl, rp);
auto debugger = DebuggerRunTool::createFromRunConfiguration(rc);
debugger->setRunParameters(rp);
connect(runTool, &DebuggerRunTool::stopped, this, [] {
QTestEventLoop::instance().exitLoop();
});
connect(debugger, &DebuggerRunTool::stopped,
&QTestEventLoop::instance(), &QTestEventLoop::exitLoop);
ProjectExplorerPlugin::startRunControl(runControl);
debugger->startRunControl();
QTestEventLoop::instance().enterLoop(5);
}