aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/lang/objc/failing-description/TestObjCFailingDescription.py
blob: a06ff577e7f7da808fb0cfdb1533c76cf9dbe584 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil


class TestCase(TestBase):
    def test(self):
        self.build()
        lldbutil.run_to_source_breakpoint(self, "break here", lldb.SBFileSpec("main.m"))
        self.expect(
            "expr -O -- bad", substrs=["error:", "expression interrupted", "(Bad *) 0x"]
        )
        self.expect(
            "dwim-print -O -- bad",
            substrs=["error:", "expression interrupted", "_lookHere = NO"],
        )