X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=unittests%2FSupport%2FAllocatorTest.cpp;h=8b463c11dfca3be66487043064cd4db0d48bfe07;hb=b21d9aebba7e45ddcbce61dd501000049cefb335;hp=bc5bd3dc407f3154832bcc66183b53beddf09140;hpb=680458275fd6c05ce3683d86483eff1254d0df80;p=oota-llvm.git diff --git a/unittests/Support/AllocatorTest.cpp b/unittests/Support/AllocatorTest.cpp index bc5bd3dc407..8b463c11dfc 100644 --- a/unittests/Support/AllocatorTest.cpp +++ b/unittests/Support/AllocatorTest.cpp @@ -98,7 +98,7 @@ TEST(AllocatorTest, TestSmallSlabSize) { BumpPtrAllocator Alloc(128); Alloc.Allocate(200, 0); - EXPECT_EQ(1U, Alloc.GetNumSlabs()); + EXPECT_EQ(2U, Alloc.GetNumSlabs()); } // Mock slab allocator that returns slabs aligned on 4096 bytes. There is no