aboutsummaryrefslogtreecommitdiff
path: root/tests/malloc_manysmall.c
diff options
context:
space:
mode:
authorEric B Munson <emunson@mgebm.net>2012-12-01 13:44:00 -0500
committerEric B Munson <emunson@mgebm.net>2012-12-07 18:13:26 -0500
commit2a478def078d2606a58b75a3c6b6ec28043c8409 (patch)
tree751fabb558a03840ca12532e4a9d6576a00a80e2 /tests/malloc_manysmall.c
parent8c075e336029bad7d4fafd87cd1e47f75ab50073 (diff)
downloadlibhugetlbfs-2a478def078d2606a58b75a3c6b6ec28043c8409.tar.gz
Revert "exhaust malloc arenas before malloc tests"
This reverts commit cdd2fa336d9980eb268a775b7cf9c49e3b698cd7. Conflicts: tests/hugetests.h tests/testutils.c With the removal of sscanf from the setup routines, the malloc tests now pass without having to exhaust small page allocations. Signed-off-by: Eric B Munson <emunson@mgebm.net> Cc: Jan Stancek <jstancek@redhat.com> Cc: Steve Capper <steve.capper@arm.com>
Diffstat (limited to 'tests/malloc_manysmall.c')
-rw-r--r--tests/malloc_manysmall.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/malloc_manysmall.c b/tests/malloc_manysmall.c
index 15cf4f0..25086a8 100644
--- a/tests/malloc_manysmall.c
+++ b/tests/malloc_manysmall.c
@@ -50,9 +50,6 @@ 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)