eb894cc37e483cd42250a1f1de74812c2195ee44
[openbsd] /
1 import lldb
2 from lldbsuite.test.decorators import *
3 from lldbsuite.test.lldbtest import *
4 from lldbsuite.test import lldbutil
5
6 class TestNamespaceLocalVarSameNameObjC(TestBase):
7
8     mydir = TestBase.compute_mydir(__file__)
9
10     @skipUnlessDarwin
11     @add_test_categories(["gmodules"])
12     def test_namespace_local_var_same_name_obj_c(self):
13         self.build()
14
15         (self.target, self.process, _, bkpt) = lldbutil.run_to_source_breakpoint(self, '// break here',
16                 lldb.SBFileSpec("util.mm", False))
17
18         self.expect("expr error",
19                 substrs=['(NSError *) $0 ='])
20
21         lldbutil.continue_to_breakpoint(self.process, bkpt)
22
23         self.expect("expr error",
24                 substrs=['(NSError *) $1 ='])