2 from lldbsuite
.test
.decorators
import *
3 from lldbsuite
.test
.lldbtest
import *
4 from lldbsuite
.test
import lldbutil
7 class TestSBValueSynthetic(TestBase
):
8 NO_DEBUG_INFO_TESTCASE
= True
12 lldbutil
.run_to_source_breakpoint(
13 self
, "break here", lldb
.SBFileSpec("main.cpp")
15 self
.runCmd("command script import formatter.py")
17 "type synthetic add --python-class formatter.FooSyntheticProvider Foo"
20 formatted
= self
.frame().FindVariable("foo")
21 has_formatted
= self
.frame().FindVariable("has_foo")
22 self
.expect(str(formatted
), exe
=False, substrs
=["synth_child"])
23 self
.expect(str(has_formatted
), exe
=False, substrs
=["synth_child"])