Files
clang-p2996/lldb/test/API/commands/expression/completion-crash-invalid-iterator/TestInvalidIteratorCompletionCrash.py
Dave Lee 4cc8f2a017 [lldb][tests] Automatically call compute_mydir (NFC)
Eliminate boilerplate of having each test manually assign to `mydir` by calling
`compute_mydir` in lldbtest.py.

Differential Revision: https://reviews.llvm.org/D128077
2022-06-17 14:34:49 -07:00

19 lines
628 B
Python

from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil
class TestCase(TestBase):
@skipIf # rdar://problem/53931074
def test(self):
self.build()
target = self.createTestTarget()
callee_break = target.BreakpointCreateByName(
"SomeClass::SomeClass(ParamClass)", None)
self.assertTrue(callee_break.GetNumLocations() > 0)
self.runCmd("run", RUN_SUCCEEDED)
to_complete = "e ParamClass"
self.dbg.GetCommandInterpreter().HandleCompletion(to_complete, len(to_complete), 0, -1, lldb.SBStringList())