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 @no_debug_info_test 12 def test_conflicting_properties(self): 13 """ Tests receiving two properties with the same name from modules.""" 14 self.build() 15 lldbutil.run_to_source_breakpoint( 16 self, '// Set breakpoint here.', lldb.SBFileSpec('main.m')) 17 18 self.runCmd( 19 "settings set target.clang-module-search-paths \"" + 20 self.getSourceDir() + 21 "\"") 22 23 self.runCmd("expr @import myModule") 24 self.expect_expr("m.propConflict", result_value="5") 25 self.expect_expr("MyClass.propConflict", result_value="6") 26