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 InitializerListTestCase(TestBase):
15 mydir = TestBase.compute_mydir(__file__)
17 @skipIfWindows # libc++ not ported to Windows yet
18 @skipIf(compiler="gcc")
21 bugnumber="fails on clang 3.5 and tot")
23 """Test that that file and class static variables display correctly."""
25 self.runCmd("file " + self.getBuildArtifact("a.out"), CURRENT_EXECUTABLE_SET)
27 bkpt = self.target().FindBreakpointByID(
28 lldbutil.run_break_set_by_source_regexp(
29 self, "Set break point at this line."))
31 self.runCmd("run", RUN_SUCCEEDED)
33 lldbutil.skip_if_library_missing(
34 self, self.target(), lldbutil.PrintableRegex("libc\+\+"))
36 # The stop reason of the thread should be breakpoint.
37 self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
39 'stop reason = breakpoint'])
41 self.expect("frame variable ili", substrs=['[1] = 2', '[4] = 5'])
42 self.expect("frame variable ils", substrs=[
43 '[4] = "surprise it is a long string!! yay!!"'])
45 self.expect('image list', substrs=self.getLibcPlusPlusLibs())