1"""Test that the Objective-C syntax for dictionary/array literals and indexing works""" 2 3import lldb 4from lldbsuite.test.decorators import * 5from lldbsuite.test.lldbtest import * 6from lldbsuite.test import lldbutil 7 8 9class ObjCNewSyntaxTest(TestBase): 10 11 mydir = TestBase.compute_mydir(__file__) 12 13 def target(self): 14 return _target 15 16 def runToBreakpoint(self): 17 self.build() 18 self._target, process, thread, bkpt = lldbutil.run_to_source_breakpoint( 19 self, '// Set breakpoint 0 here.', lldb.SBFileSpec( 20 'main.m', False)) 21 22 # The stop reason of the thread should be breakpoint. 23 self.expect( 24 "thread list", 25 STOPPED_DUE_TO_BREAKPOINT, 26 substrs=['stopped', 'stop reason = breakpoint']) 27 28 # The breakpoint should have a hit count of 1. 29 lldbutil.check_breakpoint(self, bpno = 1, expected_hit_count = 1) 30