18 lines · python
1import lldb2from lldbsuite.test.decorators import *3from lldbsuite.test.lldbtest import *4from lldbsuite.test import lldbutil5 6 7class TestCase(TestBase):8 def test(self):9 self.build()10 lldbutil.run_to_source_breakpoint(self, "break here", lldb.SBFileSpec("main.m"))11 self.expect(12 "expr -O -- bad", substrs=["error:", "expression interrupted", "(Bad *) 0x"]13 )14 self.expect(15 "dwim-print -O -- bad",16 substrs=["error:", "expression interrupted", "_lookHere = NO"],17 )18