[mlir][acc] Introduce MappableType interface (#122146)
[llvm-project.git] / lldb / test / API / lang / objc / foundation / TestObjCMethods2.py
blobbd6d197f42dc6174408f75eab53e6908d600fb4f
1 """
2 Test more expression command sequences with objective-c.
3 """
6 import lldb
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."""
17 self.build()
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
24 # Test_Selector:
25 self.expect(
26 "expression (char *)sel_getName(sel)", substrs=["(char *)", "length"]
29 desc_bkpt = target.BreakpointCreateBySourceRegex(
30 "Break here for description test", main_spec
32 self.assertEqual(
33 desc_bkpt.GetNumLocations(), 1, "description breakpoint has a location"
35 lldbutil.continue_to_breakpoint(process, desc_bkpt)
37 self.expect(
38 "expression (char *)sel_getName(_cmd)", substrs=["(char *)", "description"]