| 2495 | } |
| 2496 | |
| 2497 | void 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 | |
| 2523 | QString DebuggerTestBase::adjustedStackModelFrameName(QString frameName) const |
| 2524 | { |
nothing calls this directly
no test coverage detected