Skip to content

Commit 0ad9d8f

Browse files
committed
[lldb][test] Skip bitfield enum tests for DWARF v2 and below
Clang's v2 output appears to be missing a key DW_AT_type attribute, and this causes the "max" of the unsigned enum to appear as -1 instead of "max" aka 3. ``` (BitfieldStruct) $0 = { signed_min = min signed_other = -1 signed_max = max unsigned_min = min unsigned_other = 1 unsigned_max = -1 } ``` Test added by #96202.
1 parent c8ba556 commit 0ad9d8f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lldb/test/API/commands/expression/bitfield_enums/TestBitfieldEnums.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111

1212
class TestBitfieldEnum(TestBase):
13+
# clang's DWARF v2 output is missing DW_AT_type which causes unsigned_max to
14+
# appear as -1 instead of the "max" enumerator, whose value is 3.
15+
@skipIf(dwarf_version=["<", "3"], compiler="clang")
1316
def test_bitfield_enums(self):
1417
self.build()
1518

0 commit comments

Comments
 (0)