lldb/test/API/commands/frame/var/direct-ivar/cpp/TestFrameVarDirectIvarCpp.py
raw| 1 | import lldb |
| 2 | from lldbsuite.test.lldbtest import * |
| 3 | from lldbsuite.test.decorators import * |
| 4 | from lldbsuite.test import lldbutil |
| 5 | |
| 6 | |
| 7 | class TestCase(TestBase): |
| 8 | def test_cpp_this(self): |
| 9 | self.build() |
| 10 | lldbutil.run_to_source_breakpoint( |
| 11 | self, "// check this", lldb.SBFileSpec("main.cpp") |
| 12 | ) |
| 13 | self.expect("frame variable m_field", startstr="(int) m_field = 30") |