diff options
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/map/TestDataFormatterLibccMap.py | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/map/TestDataFormatterLibccMap.py b/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/map/TestDataFormatterLibccMap.py index 3e127306e94..64c1f301865 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/map/TestDataFormatterLibccMap.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/map/TestDataFormatterLibccMap.py @@ -52,13 +52,26 @@ class LibcxxMapDataFormatterTestCase(TestBase): self.addTearDownHook(cleanup) ns = self.namespace - self.expect('frame variable ii', + self.expect('p ii', + substrs=['%s::map' % ns, + 'size=0', + '{}']) + self.expect('frame var ii', substrs=['%s::map' % ns, 'size=0', '{}']) lldbutil.continue_to_breakpoint(self.process(), bkpt) + self.expect('p ii', + substrs=['%s::map' % ns, 'size=2', + '[0] = ', + 'first = 0', + 'second = 0', + '[1] = ', + 'first = 1', + 'second = 1']) + self.expect('frame variable ii', substrs=['%s::map' % ns, 'size=2', '[0] = ', @@ -81,7 +94,7 @@ class LibcxxMapDataFormatterTestCase(TestBase): lldbutil.continue_to_breakpoint(self.process(), bkpt) - self.expect("frame variable ii", + self.expect("p ii", substrs=['%s::map' % ns, 'size=8', '[5] = ', 'first = 5', @@ -90,7 +103,7 @@ class LibcxxMapDataFormatterTestCase(TestBase): 'first = 7', 'second = 1']) - self.expect("p ii", + self.expect("frame var ii", substrs=['%s::map' % ns, 'size=8', '[5] = ', 'first = 5', |