| 508 | } |
| 509 | |
| 510 | void DebuggerTestBase::testDeleteBreakpoint() |
| 511 | { |
| 512 | auto* const session = createTestDebugSession(); |
| 513 | TestLaunchConfiguration cfg; |
| 514 | |
| 515 | QCOMPARE(breakpoints()->rowCount(), 0); |
| 516 | // add breakpoint before startDebugging() |
| 517 | addDebugeeBreakpoint(22); |
| 518 | QCOMPARE(breakpoints()->rowCount(), 1); |
| 519 | QVERIFY(breakpoints()->removeRow(0)); |
| 520 | QCOMPARE(breakpoints()->rowCount(), 0); |
| 521 | |
| 522 | addDebugeeBreakpoint(23); |
| 523 | const ActiveStateSessionSpy sessionSpy(session); |
| 524 | START_DEBUGGING_AND_WAIT_FOR_PAUSED_STATE_E(session, cfg, sessionSpy); |
| 525 | |
| 526 | QVERIFY(breakpoints()->removeRow(0)); |
| 527 | |
| 528 | session->run(); |
| 529 | WAIT_FOR_STATE(session, IDebugSession::EndedState); |
| 530 | } |
| 531 | |
| 532 | void DebuggerTestBase::testPendingBreakpoint() |
| 533 | { |