[lldb] Disable TestNamespaceLookup in DWARF 5 + dSYM setting

The ordering in which functions are presented to the expression evaluator in
this test setting triggers a known bug in LLDB.

Differential Revision: https://reviews.llvm.org/D154843
This commit is contained in:
Felipe de Azevedo Piovezan 2023-07-10 09:53:20 -04:00
parent 1d51597870
commit 6890ad3f41

View File

@ -164,7 +164,11 @@ class NamespaceLookupTestCase(TestBase):
# Continue to BP_file_scope at file scope
self.runToBkpt("continue")
self.expect_expr("func()", result_type="int", result_value="2")
# FIXME: In DWARF 5 with dsyms, the ordering of functions is slightly
# different, which also hits the same issues mentioned previously.
if (configuration.dwarf_version <= 4 or
self.getDebugInfo() == 'dwarf'):
self.expect_expr("func()", result_type="int", result_value="2")
# Continue to BP_ns_scope at ns scope
self.runToBkpt("continue")