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

Method testPathWithSpace

plugins/debuggercommon/tests/debuggertestbase.cpp:1114–1129  ·  view source on GitHub ↗

see https://bugs.kde.org/show_bug.cgi?id=339231

Source from the content-addressed store, hash-verified

1112
1113// see https://bugs.kde.org/show_bug.cgi?id=339231
1114void DebuggerTestBase::testPathWithSpace()
1115{
1116 auto* const session = createTestDebugSession();
1117 const auto debugee = findExecutable("path with space/debuggee_spacedebugee");
1118 TestLaunchConfiguration cfg(debugee, KIO::upUrl(debugee));
1119
1120 const auto* const breakpoint = breakpoints()->addCodeBreakpoint("spacedebugee.cpp:30");
1121 QCOMPARE(breakpoint->state(), Breakpoint::NotStartedState);
1122
1123 const ActiveStateSessionSpy sessionSpy(session);
1124 START_DEBUGGING_AND_WAIT_FOR_PAUSED_STATE_E(session, cfg, sessionSpy);
1125 QCOMPARE(breakpoint->state(), Breakpoint::CleanState);
1126
1127 session->run();
1128 WAIT_FOR_STATE(session, IDebugSession::EndedState);
1129}
1130
1131void DebuggerTestBase::testBreakpointInSharedLibrary()
1132{

Callers

nothing calls this directly

Calls 4

findExecutableFunction · 0.70
addCodeBreakpointMethod · 0.45
stateMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected