summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-04-13 15:01:26 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-04-13 15:01:26 +0000
commitf3a3b0fc0e6be9c45add0aa6624f0cb900548dcc (patch)
tree964810807a36d535808898d0c7ba8c6c84598633 /unittests
parent5e6a705985f960b8d8a6df969930a51b5136bdfa (diff)
downloadllvm-f3a3b0fc0e6be9c45add0aa6624f0cb900548dcc.tar.gz
llvm-f3a3b0fc0e6be9c45add0aa6624f0cb900548dcc.tar.bz2
llvm-f3a3b0fc0e6be9c45add0aa6624f0cb900548dcc.tar.xz
Update unittest for allocator laziness.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101131 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/ExecutionEngine/JIT/JITMemoryManagerTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/unittests/ExecutionEngine/JIT/JITMemoryManagerTest.cpp b/unittests/ExecutionEngine/JIT/JITMemoryManagerTest.cpp
index aa0c41d3ed..ff5af3b72d 100644
--- a/unittests/ExecutionEngine/JIT/JITMemoryManagerTest.cpp
+++ b/unittests/ExecutionEngine/JIT/JITMemoryManagerTest.cpp
@@ -239,8 +239,8 @@ TEST(JITMemoryManagerTest, TestManyGlobals) {
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 @@ TEST(JITMemoryManagerTest, TestManyStubs) {
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)