forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user