2 Test lldb data formatter subsystem.
8 from lldbsuite.test.decorators import *
9 from lldbsuite.test.lldbtest import *
10 from lldbsuite.test import lldbutil
13 class TestDataFormatterLibcxxForwardList(TestBase):
15 mydir = TestBase.compute_mydir(__file__)
19 self.line = line_number('main.cpp', '// break here')
20 ns = 'ndk' if lldbplatformutil.target_is_android() else ''
21 self.namespace = 'std::__' + ns + '1'
23 @add_test_categories(["libc++"])
25 """Test that std::forward_list is displayed correctly"""
27 lldbutil.run_to_source_breakpoint(self, '// break here',
28 lldb.SBFileSpec("main.cpp", False))
30 forward_list = self.namespace + '::forward_list'
31 self.expect("frame variable empty",
32 substrs=[forward_list,
36 self.expect("frame variable one_elt",
37 substrs=[forward_list,
43 self.expect("frame variable five_elts",
44 substrs=[forward_list,