3 Test lldb data formatter subsystem.
8 from lldbsuite.test.decorators import *
9 from lldbsuite.test.lldbtest import *
10 from lldbsuite.test import lldbutil
13 class ObjCDataFormatterTestCase(TestBase):
15 mydir = TestBase.compute_mydir(__file__)
17 def appkit_tester_impl(self, commands):
19 self.appkit_common_data_formatters_command()
22 def appkit_common_data_formatters_command(self):
23 """Test formatters for AppKit classes."""
24 self.target, process, thread, bkpt = lldbutil.run_to_source_breakpoint(
25 self, '// Set break point at this line.',
26 lldb.SBFileSpec('main.m', False))
28 # The stop reason of the thread should be breakpoint.
31 STOPPED_DUE_TO_BREAKPOINT,
32 substrs=['stopped', 'stop reason = breakpoint'])
34 # This is the function to remove the custom formats in order to have a
35 # clean slate for the next test case.
37 self.runCmd('type format clear', check=False)
38 self.runCmd('type summary clear', check=False)
39 self.runCmd('type synth clear', check=False)
41 # Execute the cleanup function during test case tear down.
42 self.addTearDownHook(cleanup)