[Lldb-commits] [lldb] c97e5ad - [lldb][test] Disable TestSBValueUnsignedEnumBitField.py for old DWARF versions

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Tue Sep 27 06:09:39 PDT 2022


Author: Michael Buch
Date: 2022-09-27T14:09:12+01:00
New Revision: c97e5adbf7c44ba5c46ec14712d3d8ee8b45aac9

URL: https://github.com/llvm/llvm-project/commit/c97e5adbf7c44ba5c46ec14712d3d8ee8b45aac9
DIFF: https://github.com/llvm/llvm-project/commit/c97e5adbf7c44ba5c46ec14712d3d8ee8b45aac9.diff

LOG: [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

Added: 
    

Modified: 
    lldb/test/API/python_api/sbvalue_unsigned_enum_bitfield_value/TestSBValueUnsignedEnumBitField.py

Removed: 
    


################################################################################
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 eb01fd6ee63a7..e2e1118ec2b47 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 @@
 """
 
 import lldbsuite.test.lldbinline as lldbinline
+from lldbsuite.test.decorators import *
 
-lldbinline.MakeInlineTest(__file__, globals())
+lldbinline.MakeInlineTest(__file__, globals(),
+                          [skipIf(dwarf_version=['<', '3'])])


        


More information about the lldb-commits mailing list