[lldb][test] TestDataFormatterLibcxxOptionalSimulator.py: skip on older Clang versions

This commit is contained in:
Michael Buch 2026-01-22 13:25:24 +00:00
parent 2be02dcb49
commit ec28be3cca

View File

@ -47,14 +47,7 @@ for r in range(2):
name = f"test_r{r}"
defines = [f"REVISION={r}"]
# LLDB's FormatterCache caches on DW_AT_name. A change introduced in
# clang-17 (commit bee886052) changed the contents of DW_AT_name for
# template specializations, which broke FormatterCache assumptions
# causing this test to fail. This was reverted in newer version of clang
# with commit 52a9ba7ca.
@skipIf(compiler="clang", compiler_version=["=", "17"])
@skipIf(compiler="clang", compiler_version=["=", "18"])
@skipIf(compiler="clang", compiler_version=["=", "19"])
@skipIf(compiler="clang", compiler_version=["<", "21"])
@functools.wraps(LibcxxOptionalDataFormatterSimulatorTestCase._run_test)
def test_method(self, defines=defines):
LibcxxOptionalDataFormatterSimulatorTestCase._run_test(self, defines)