e1dc52e8394ffae952d5d2f3cff0748b9ece241f
[openbsd] /
1 """
2 Test lldb data formatter subsystem.
3 """
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
13 class TypeSummaryListArgumentTestCase(TestBase):
14
15     mydir = TestBase.compute_mydir(__file__)
16
17     @no_debug_info_test
18     def test_type_summary_list_with_arg(self):
19         """Test that the 'type summary list' command handles command line arguments properly"""
20         self.expect(
21             'type summary list Foo',
22             substrs=[
23                 'Category: default',
24                 'Category: system'])
25         self.expect(
26             'type summary list char',
27             substrs=[
28                 'char *',
29                 'unsigned char'])
30
31         self.expect(
32             'type summary list -w default',
33             substrs=['system'],
34             matching=False)
35         self.expect(
36             'type summary list -w system unsigned',
37             substrs=[
38                 'default',
39                 '0-9'],
40             matching=False)
41         self.expect(
42             'type summary list -w system char',
43             substrs=['unsigned char *'],
44             matching=True)