3 Test lldb data formatter subsystem.
8 from lldbsuite.test.decorators import *
9 from lldbsuite.test.lldbtest import *
10 from lldbsuite.test import lldbutil
12 from ObjCDataFormatterTestCase import ObjCDataFormatterTestCase
15 class ObjCDataFormatterNSError(ObjCDataFormatterTestCase):
18 def test_nserror_with_run_command(self):
19 """Test formatters for NSError."""
20 self.appkit_tester_impl(self.nserror_data_formatter_commands)
22 def nserror_data_formatter_commands(self):
24 'frame variable nserror', substrs=['domain: @"Foobar" - code: 12'])
27 'frame variable nserrorptr',
28 substrs=['domain: @"Foobar" - code: 12'])
31 'frame variable nserror->_userInfo', substrs=['2 key/value pairs'])
34 'frame variable nserror->_userInfo --ptr-depth 1 -d run-target',
35 substrs=['@"a"', '@"b"', "1", "2"])