]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: adjust memory limits in head-c.sh
authorPádraig Brady <P@draigBrady.com>
Fri, 15 Jan 2016 14:16:11 +0000 (14:16 +0000)
committerPádraig Brady <P@draigBrady.com>
Fri, 15 Jan 2016 14:19:48 +0000 (14:19 +0000)
* 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.

tests/misc/head-c.sh

index 3d7252f67da40c2147c179699e8d08eff7cdb845..cc544f97896224f99c5a7d97f2eaadbdf3ddcec6 100755 (executable)
@@ -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.