mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-19 19:31:50 +00:00
Try to unflake AllocatorTest.TestAlignmentPastSlab
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217331 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4f240010fd
commit
3f09227292
@ -118,10 +118,11 @@ TEST(AllocatorTest, TestSmallSlabSize) {
|
||||
// Test requesting alignment that goes past the end of the current slab.
|
||||
TEST(AllocatorTest, TestAlignmentPastSlab) {
|
||||
BumpPtrAllocator Alloc;
|
||||
Alloc.Allocate(1234, 1);
|
||||
Alloc.Allocate(4095, 1);
|
||||
|
||||
// Any attempt to align the pointer in the current slab would move it beyond
|
||||
// the end of that slab.
|
||||
// Aligning the current slab pointer is likely to move it past the end of the
|
||||
// slab, which would confuse any unsigned comparisons with the difference of
|
||||
// the the end pointer and the aligned pointer.
|
||||
Alloc.Allocate(1024, 8192);
|
||||
|
||||
EXPECT_EQ(2U, Alloc.GetNumSlabs());
|
||||
|
Loading…
x
Reference in New Issue
Block a user