brintos

brintos / llvm-project-archived public Read only

0
0
Text · 546 B · 2b27bd3 Raw
18 lines · python
1import lldb2from lldbsuite.test.decorators import *3from lldbsuite.test.lldbtest import *4from lldbsuite.test import lldbutil5 6 7class TestCase(TestBase):8    @skipUnlessDarwin9    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