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

Method testBreakOnStart

plugins/lldb/unittests/test_lldb.cpp:97–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97void LldbTest::testBreakOnStart()
98{
99 auto *session = new TestDebugSession;
100
101 TestLaunchConfiguration cfg;
102 cfg.config().writeEntry(KDevMI::Config::BreakOnStartEntry, true);
103
104 ActiveStateSessionSpy sessionSpy(session);
105 START_DEBUGGING_AND_WAIT_FOR_PAUSED_STATE_E(session, cfg, sessionSpy);
106
107 // line 28 is the start of main function in debugee.cpp
108 QCOMPARE(session->currentLine(), 27); // currentLine is zero-based
109
110 session->run();
111 WAIT_FOR_STATE(session, DebugSession::EndedState);
112}
113
114void LldbTest::testUpdateBreakpoint()
115{

Callers

nothing calls this directly

Calls 4

writeEntryMethod · 0.80
currentLineMethod · 0.80
configMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected