aboutsummaryrefslogtreecommitdiff
path: root/tests/malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/malloc.c')
-rw-r--r--tests/malloc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/malloc.c b/tests/malloc.c
index a1af5e1..dbdd617 100644
--- a/tests/malloc.c
+++ b/tests/malloc.c
@@ -61,6 +61,9 @@ int main(int argc, char *argv[])
expect_hugepage = 1;
verbose_printf("expect_hugepage=%d\n", expect_hugepage);
+ if (expect_hugepage)
+ consume_heap(1024*1024);
+
for (i = 0; i < NUM_SIZES; i++) {
int size = block_sizes[i];
unsigned long long mapping_size;