brintos

brintos / llvm-project-archived public Read only

0
0
Text · 826 B · 657a710 Raw
26 lines · python
1import lldb2from lldbsuite.test.decorators import *3from lldbsuite.test.lldbtest import *4from lldbsuite.test import lldbutil5 6 7class TestCase(TestBase):8    @no_debug_info_test9    @skipIf(compiler="clang", compiler_version=["<", "19.0"])10    def test_conflicting_properties(self):11        """Tests receiving two properties with the same name from modules."""12        self.build()13        lldbutil.run_to_source_breakpoint(14            self, "// Set breakpoint here.", lldb.SBFileSpec("main.m")15        )16 17        self.runCmd(18            'settings set target.clang-module-search-paths "'19            + self.getSourceDir()20            + '"'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