diff --git a/lldb/test/lang/c/bitfields/TestBitfields.py b/lldb/test/lang/c/bitfields/TestBitfields.py index 0b5c51001afb..380246ddd6b0 100644 --- a/lldb/test/lang/c/bitfields/TestBitfields.py +++ b/lldb/test/lang/c/bitfields/TestBitfields.py @@ -152,7 +152,12 @@ class BitfieldsTestCase(TestBase): self.DebugSBValue(bits) self.assertTrue(bits.GetTypeName() == 'Bits', "bits.GetTypeName() == 'Bits'"); self.assertTrue(bits.GetNumChildren() == 10, "bits.GetNumChildren() == 10"); - self.assertTrue(bits.GetByteSize() == 32, "bits.GetByteSize() == 32"); + test_compiler = self.getCompiler() + if "gcc" in test_compiler: + # Clang ignores the align attribute, so this structure isn't padded out to + # 32 bytes there as the test author intended. Suppress this test for clang + # till somebody has a chance to go rewrite the test source to be this big portably. + self.assertTrue(bits.GetByteSize() == 32, "bits.GetByteSize() == 32"); # Notice the pattern of int(b1.GetValue(), 0). We pass a base of 0 # so that the proper radix is determined based on the contents of the