40acc19a5da6ca47d275cec368dcd6f594ff412c
[openbsd] /
1 # encoding: utf-8
2 """
3 Test lldb data formatter subsystem.
4 """
5
6
7 import lldb
8 from lldbsuite.test.decorators import *
9 from lldbsuite.test.lldbtest import *
10 from lldbsuite.test import lldbutil
11
12 from ObjCDataFormatterTestCase import ObjCDataFormatterTestCase
13
14
15 class 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             ])