This uses [teyit](https://pypi.org/project/teyit/) to modernize asserts, as recommended by the [unittest release notes](https://docs.python.org/3.12/whatsnew/3.12.html#id3). For example, `assertTrue(a == b)` is replaced with `assertEqual(a, b)`. This produces better error messages, e.g. `error: unexpectedly found 1 and 2 to be different` instead of `error: False`.
21 lines
661 B
Python
21 lines
661 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.assertGreater(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()
|
|
)
|