| 530 | } |
| 531 | |
| 532 | void DebuggerTestBase::testPendingBreakpoint() |
| 533 | { |
| 534 | auto* const session = createTestDebugSession(); |
| 535 | TestLaunchConfiguration cfg; |
| 536 | |
| 537 | addDebugeeBreakpoint(29); |
| 538 | |
| 539 | const auto* const breakpoint = |
| 540 | breakpoints()->addCodeBreakpoint(QUrl::fromLocalFile(findSourceFile("debugeeqt.cpp")), 10); |
| 541 | QCOMPARE(breakpoint->state(), Breakpoint::NotStartedState); |
| 542 | |
| 543 | const ActiveStateSessionSpy sessionSpy(session); |
| 544 | START_DEBUGGING_AND_WAIT_FOR_PAUSED_STATE_E(session, cfg, sessionSpy); |
| 545 | |
| 546 | QCOMPARE(breakpoint->state(), Breakpoint::PendingState); |
| 547 | |
| 548 | session->run(); |
| 549 | WAIT_FOR_STATE(session, IDebugSession::EndedState); |
| 550 | } |
| 551 | |
| 552 | void DebuggerTestBase::testBreakpointsOnNoOpLines() |
| 553 | { |
nothing calls this directly
no test coverage detected