2 Test that we can p *objcObject
5 from __future__ import print_function
10 import lldbsuite.test.lldbutil as lldbutil
11 from lldbsuite.test.lldbtest import *
13 class PersistObjCPointeeType(TestBase):
15 mydir = TestBase.compute_mydir(__file__)
18 # Call super's setUp().
20 # Find the line number to break for main.cpp.
21 self.line = line_number('main.m','// break here')
25 bugnumber='http://llvm.org/pr23504',
26 oslist=['macosx'], compiler='clang', compiler_version=['<', '7.0.0'])
28 """Test that we can p *objcObject"""
34 # Execute the cleanup function during test case tear down.
35 self.addTearDownHook(cleanup)
37 self.runCmd("file a.out", CURRENT_EXECUTABLE_SET)
39 lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, loc_exact=True)
41 self.runCmd("run", RUN_SUCCEEDED)
43 self.expect("p *self", substrs=['_sc_name = nil',