1import lldb 2from lldbsuite.test.decorators import * 3from lldbsuite.test.lldbtest import * 4from lldbsuite.test import lldbutil 5 6 7class TestCase(TestBase): 8 @skipUnlessDarwin 9 def test(self): 10 self.build() 11 if self.TraceOn(): 12 self.expect("log enable -v lldb formatters") 13 lldbutil.run_to_source_breakpoint( 14 self, "break here", lldb.SBFileSpec("main.cpp") 15 ) 16 self.expect("v x", substrs=["(MyOptional<int>) x = None"]) 17 self.expect("v y", substrs=["(MyOptional<int>) y = 42"]) 18