aboutsummaryrefslogtreecommitdiff
path: root/tests/malloc_manysmall.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/malloc_manysmall.c')
-rw-r--r--tests/malloc_manysmall.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/malloc_manysmall.c b/tests/malloc_manysmall.c
index 25086a8..15cf4f0 100644
--- a/tests/malloc_manysmall.c
+++ b/tests/malloc_manysmall.c
@@ -50,6 +50,9 @@ int main(int argc, char *argv[])
if (env)
expect_hugepage = 1;
+ if (expect_hugepage)
+ consume_heap(1024*1024);
+
for (i = 0; i < NUM_ALLOCS; i++) {
p = malloc(ALLOC_SIZE);
if (! p)