2 Test more expression command sequences with objective-c.
7 from lldbsuite
.test
.decorators
import *
8 from lldbsuite
.test
.lldbtest
import *
9 from lldbsuite
.test
import lldbutil
12 class FoundationTestCase2(TestBase
):
13 NO_DEBUG_INFO_TESTCASE
= True
15 def test_expr_commands(self
):
16 """More expression commands for objective-c."""
18 main_spec
= lldb
.SBFileSpec("main.m")
20 (target
, process
, thread
, bp
) = lldbutil
.run_to_source_breakpoint(
21 self
, "Break here for selector: tests", main_spec
26 "expression (char *)sel_getName(sel)", substrs
=["(char *)", "length"]
29 desc_bkpt
= target
.BreakpointCreateBySourceRegex(
30 "Break here for description test", main_spec
33 desc_bkpt
.GetNumLocations(), 1, "description breakpoint has a location"
35 lldbutil
.continue_to_breakpoint(process
, desc_bkpt
)
38 "expression (char *)sel_getName(_cmd)", substrs
=["(char *)", "description"]