diff options
| author | Jim Ingham <jingham@apple.com> | 2014-03-19 00:50:08 +0000 |
|---|---|---|
| committer | Jim Ingham <jingham@apple.com> | 2014-03-19 00:50:08 +0000 |
| commit | 39771db6376c07b2f3cf996f9dfdddeda9d4904d (patch) | |
| tree | 43e1323f3e8c1090a1cd448dddf4466b94ace9e7 | |
| parent | 8e522094b2dbe6e8e1a495c47fda50e47a6904c9 (diff) | |
| download | bcm5719-llvm-39771db6376c07b2f3cf996f9dfdddeda9d4904d.tar.gz bcm5719-llvm-39771db6376c07b2f3cf996f9dfdddeda9d4904d.zip | |
Work around clang's ignoring __attribute ( align(16) ) in this test case.
llvm-svn: 204207
| -rw-r--r-- | lldb/test/lang/c/bitfields/TestBitfields.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lldb/test/lang/c/bitfields/TestBitfields.py b/lldb/test/lang/c/bitfields/TestBitfields.py index 0b5c51001af..380246ddd6b 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 |

