From 4a0905ac3638d441f2cf68d1bd125fbdf6745e82 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 20 Jan 2016 17:05:53 +0000 Subject: [PATCH] tests: regressions: Allow test-big-heap to work on machines with less memory. This test would fail on machines with around 4 GB of free memory. Adjust the test so it would now work on such machines (it will however still fail on a machine with around 2 GB of free memory). --- tests/regressions/test-big-heap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/regressions/test-big-heap.c b/tests/regressions/test-big-heap.c index cd9c14419..1cbf8d23c 100644 --- a/tests/regressions/test-big-heap.c +++ b/tests/regressions/test-big-heap.c @@ -55,11 +55,11 @@ main (int argc, char *argv[]) * contiguous memory. Therefore skip the test if the calloc call * fails. */ - /* XXX This test also fails for machines with ~ 4 GB of RAM, - * because the 2 GB allocation succeeds here, but the fork - * fails (since it will require around 2 * 2 GB). + /* XXX This test also fails for machines with ~ 2 GB of RAM, + * because the 1.1 GB allocation succeeds here, but the fork + * fails (since it will require around 2 * 1.1 GB). */ - mem = calloc (2 * 1024, 1024 * 1024); + mem = calloc (1100, 1024 * 1024); if (mem == NULL) { fprintf (stderr, "%s: test skipped because cannot allocate enough "