From: Pádraig Brady Date: Fri, 15 Jan 2016 14:16:11 +0000 (+0000) Subject: tests: adjust memory limits in head-c.sh X-Git-Tag: v8.25~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7648870f391f7565b8a9b0c98d10ff9a0f32ecb7;p=thirdparty%2Fcoreutils.git tests: adjust memory limits in head-c.sh * tests/misc/head-c.sh: Further increase the limit, to account for the fact that head(1) needs at least 1.576MB over the base test command on FreeBSD 10. 4MB should be enough headroom while still providing over allocation protection. Reported by Assaf Gordon. --- diff --git a/tests/misc/head-c.sh b/tests/misc/head-c.sh index 3d7252f67d..cc544f9789 100755 --- a/tests/misc/head-c.sh +++ b/tests/misc/head-c.sh @@ -42,7 +42,7 @@ esac # Only allocate memory as needed. # Coreutils <= 8.21 would allocate memory up front # based on the value passed to -c -(ulimit -v $(($vm+1000)) && head --bytes=-$SSIZE_MAX < /dev/null) || fail=1 +(ulimit -v $(($vm+4000)) && head --bytes=-$SSIZE_MAX < /dev/null) || fail=1 # Make sure it works on funny files in /proc and /sys.