2 Test that we can p *objcObject
5 from __future__ import print_function
10 from lldbsuite.test.decorators import *
11 from lldbsuite.test.lldbtest import *
12 from lldbsuite.test import lldbutil
14 class PersistObjCPointeeType(TestBase):
16 mydir = TestBase.compute_mydir(__file__)
19 # Call super's setUp().
21 # Find the line number to break for main.cpp.
22 self.line = line_number('main.m','// break here')
26 bugnumber='http://llvm.org/pr23504',
27 oslist=['macosx'], compiler='clang', compiler_version=['<', '7.0.0'])
29 """Test that we can p *objcObject"""
35 # Execute the cleanup function during test case tear down.
36 self.addTearDownHook(cleanup)
38 self.runCmd("file a.out", CURRENT_EXECUTABLE_SET)
40 lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, loc_exact=True)
42 self.runCmd("run", RUN_SUCCEEDED)
44 self.expect("p *self", substrs=['_sc_name = nil',