1import unittest2
2
3import lldb
4from lldbsuite.test.decorators import *
5from lldbsuite.test.lldbtest import *
6from lldbsuite.test import lldbutil
7
8
9class TestCase(TestBase):
10
11    mydir = TestBase.compute_mydir(__file__)
12
13    @no_debug_info_test
14    def test_conflicting_properties(self):
15        """ Tests receiving two properties with the same name from modules."""
16        self.build()
17        lldbutil.run_to_source_breakpoint(
18            self, '// Set breakpoint here.', lldb.SBFileSpec('main.m'))
19
20        self.runCmd(
21            "settings set target.clang-module-search-paths \"" +
22            self.getSourceDir() +
23            "\"")
24
25        self.runCmd("expr @import myModule")
26        self.expect_expr("m.propConflict", result_value="5")
27        self.expect_expr("MyClass.propConflict", result_value="6")
28