37 lines · python
1# encoding: utf-82"""3Test lldb data formatter subsystem.4"""5 6 7import lldb8from lldbsuite.test.decorators import *9from lldbsuite.test.lldbtest import *10from lldbsuite.test import lldbutil11 12from ObjCDataFormatterTestCase import ObjCDataFormatterTestCase13 14 15class ObjCDataFormatterNSBundle(ObjCDataFormatterTestCase):16 def test_nsbundle_with_run_command(self):17 """Test formatters for NSBundle."""18 self.appkit_tester_impl(self.nsbundle_data_formatter_commands, True)19 20 @skipUnlessDarwin21 def test_nsbundle_with_run_command_no_sonct(self):22 """Test formatters for NSBundle."""23 self.appkit_tester_impl(self.nsbundle_data_formatter_commands, False)24 25 def nsbundle_data_formatter_commands(self):26 self.expect(27 "frame variable bundle_string bundle_url main_bundle",28 substrs=[29 "(NSBundle *) bundle_string = ",30 ' @"/System/Library/Frameworks/Accelerate.framework"',31 "(NSBundle *) bundle_url = ",32 ' @"/System/Library/Frameworks/Foundation.framework"',33 "(NSBundle *) main_bundle = ",34 "data-formatter-objc",35 ],36 )37