MCPcopy Create free account
hub / github.com/KDE/kdevelop / testDebugInExternalTerminal

Method testDebugInExternalTerminal

plugins/debuggercommon/tests/debuggertestbase.cpp:2497–2521  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2495}
2496
2497void DebuggerTestBase::testDebugInExternalTerminal()
2498{
2499 QFETCH(const QString, terminalExecutable);
2500 QFETCH(const QString, terminalCommand);
2501
2502 if (QStandardPaths::findExecutable(terminalExecutable).isEmpty()) {
2503 QSKIP(qPrintable(QLatin1String{"Skipping because `%1` executable is not available"}.arg(terminalExecutable)));
2504 }
2505
2506 auto* const session = createTestDebugSession();
2507 TestLaunchConfiguration cfg;
2508
2509 cfg.config().writeEntry(IExecutePlugin::useTerminalEntry, true);
2510 cfg.config().writeEntry(IExecutePlugin::terminalEntry, terminalCommand);
2511
2512 const auto* const breakpoint = addDebugeeBreakpoint(29);
2513 ActiveStateSessionSpy sessionSpy(session);
2514 START_DEBUGGING_AND_WAIT_FOR_PAUSED_STATE_E(session, cfg, sessionSpy);
2515 QCOMPARE(breakpoint->state(), Breakpoint::CleanState);
2516
2517 STEP_INTO_AND_WAIT_FOR_PAUSED_STATE(session, sessionSpy);
2518
2519 session->run();
2520 WAIT_FOR_STATE(session, IDebugSession::EndedState);
2521}
2522
2523QString DebuggerTestBase::adjustedStackModelFrameName(QString frameName) const
2524{

Callers

nothing calls this directly

Calls 6

writeEntryMethod · 0.80
findExecutableFunction · 0.70
isEmptyMethod · 0.45
configMethod · 0.45
stateMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected