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