2 from lldbsuite.test.decorators import *
3 from lldbsuite.test.lldbtest import *
4 from lldbsuite.test import lldbutil
6 class TestNamespaceLocalVarSameNameCppAndC(TestBase):
8 mydir = TestBase.compute_mydir(__file__)
11 @add_test_categories(["gmodules"])
12 def test_namespace_local_var_same_name_cpp_and_c(self):
15 (self.target, self.process, _, bkpt) = lldbutil.run_to_source_breakpoint(self, '// break here',
16 lldb.SBFileSpec("main.cpp", False))
18 self.expect("expr error",
19 substrs=['(int) $0 = 1'])
21 lldbutil.continue_to_breakpoint(self.process, bkpt)
23 self.expect("expr error",
24 substrs=['(int) $1 = 1'])