From c97e5adbf7c44ba5c46ec14712d3d8ee8b45aac9 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Tue, 27 Sep 2022 14:00:24 +0100 Subject: [PATCH] [lldb][test] Disable TestSBValueUnsignedEnumBitField.py for old DWARF versions With older DWARF versions we don't encode the enum's underlying type in DWARF. In those cases LLDB sign-extends the bitfield as a signed integer. Without the actual enum type being present in DWARF there's not much we can do. Differential Revision: https://reviews.llvm.org/D134734 --- .../TestSBValueUnsignedEnumBitField.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lldb/test/API/python_api/sbvalue_unsigned_enum_bitfield_value/TestSBValueUnsignedEnumBitField.py b/lldb/test/API/python_api/sbvalue_unsigned_enum_bitfield_value/TestSBValueUnsignedEnumBitField.py index eb01fd6..e2e1118 100644 --- a/lldb/test/API/python_api/sbvalue_unsigned_enum_bitfield_value/TestSBValueUnsignedEnumBitField.py +++ b/lldb/test/API/python_api/sbvalue_unsigned_enum_bitfield_value/TestSBValueUnsignedEnumBitField.py @@ -14,5 +14,7 @@ for this not to happen. """ import lldbsuite.test.lldbinline as lldbinline +from lldbsuite.test.decorators import * -lldbinline.MakeInlineTest(__file__, globals()) +lldbinline.MakeInlineTest(__file__, globals(), + [skipIf(dwarf_version=['<', '3'])]) -- 2.7.4