[llvm-commits] [llvm] r101131 - /llvm/trunk/unittests/ExecutionEngine/JIT/JITMemoryManagerTest.cpp

Benjamin Kramer benny.kra at googlemail.com
Tue Apr 13 08:01:26 PDT 2010


Author: d0k
Date: Tue Apr 13 10:01:26 2010
New Revision: 101131

URL: http://llvm.org/viewvc/llvm-project?rev=101131&view=rev
Log:
Update unittest for allocator laziness.

Modified:
    llvm/trunk/unittests/ExecutionEngine/JIT/JITMemoryManagerTest.cpp

Modified: llvm/trunk/unittests/ExecutionEngine/JIT/JITMemoryManagerTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ExecutionEngine/JIT/JITMemoryManagerTest.cpp?rev=101131&r1=101130&r2=101131&view=diff
==============================================================================
--- llvm/trunk/unittests/ExecutionEngine/JIT/JITMemoryManagerTest.cpp (original)
+++ llvm/trunk/unittests/ExecutionEngine/JIT/JITMemoryManagerTest.cpp Tue Apr 13 10:01:26 2010
@@ -239,8 +239,8 @@
   size_t Size = 128;
   int Iters = (SlabSize / Size) + 1;
 
-  // We should start with one slab.
-  EXPECT_EQ(1U, MemMgr->GetNumDataSlabs());
+  // We should start with no slabs.
+  EXPECT_EQ(0U, MemMgr->GetNumDataSlabs());
 
   // After allocating a bunch of globals, we should have two.
   for (int I = 0; I < Iters; ++I)
@@ -262,8 +262,8 @@
   size_t Size = 128;
   int Iters = (SlabSize / Size) + 1;
 
-  // We should start with one slab.
-  EXPECT_EQ(1U, MemMgr->GetNumStubSlabs());
+  // We should start with no slabs.
+  EXPECT_EQ(0U, MemMgr->GetNumDataSlabs());
 
   // After allocating a bunch of stubs, we should have two.
   for (int I = 0; I < Iters; ++I)





More information about the llvm-commits mailing list