1# encoding: utf-8 2""" 3Test lldb data formatter subsystem. 4""" 5 6 7import lldb 8from lldbsuite.test.decorators import * 9from lldbsuite.test.lldbtest import * 10from lldbsuite.test import lldbutil 11 12from ObjCDataFormatterTestCase import ObjCDataFormatterTestCase 13 14 15class ObjCDataFormatterNSBundle(ObjCDataFormatterTestCase): 16 17 @skipUnlessDarwin 18 def test_nsbundle_with_run_command(self): 19 """Test formatters for NSBundle.""" 20 self.appkit_tester_impl(self.nsbundle_data_formatter_commands) 21 22 def nsbundle_data_formatter_commands(self): 23 self.expect( 24 'frame variable bundle_string bundle_url main_bundle', 25 substrs=[ 26 '(NSBundle *) bundle_string = ', 27 ' @"/System/Library/Frameworks/Accelerate.framework"', 28 '(NSBundle *) bundle_url = ', 29 ' @"/System/Library/Frameworks/Foundation.framework"', 30 '(NSBundle *) main_bundle = ', 'data-formatter-objc' 31 ]) 32