15 lines · python
1import lldb2from lldbsuite.test.decorators import *3from lldbsuite.test.lldbtest import *4from lldbsuite.test import lldbutil5 6 7class ValueObjectErrorsTestCase(TestBase):8 def test(self):9 """Test that the error message for a missing type10 is visible when printing an object"""11 self.build()12 lldbutil.run_to_source_breakpoint(self, "break here",13 lldb.SBFileSpec('main.c'))14 self.expect('v -ptr-depth 1 x', substrs=['<incomplete type "Opaque">'])15