blob: c5c2811c594397ef91a7181e4d7049a178cf69fb [file] [log] [blame] [edit]
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil
class TestCase(TestBase):
@skipUnlessDarwin
def test(self):
self.build()
if self.TraceOn():
self.expect("log enable -v lldb formatters")
_, _, thread, _ = lldbutil.run_to_source_breakpoint(
self, "break here", lldb.SBFileSpec("main.cpp")
)
frame = thread.selected_frame
account = frame.var("acc")
self.assertEqual(account.num_children, 1)
self.assertEqual(account.child[0].name, "username")
self.expect("v acc", matching=False, substrs=["password"])