]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: adjust memory limits in head-c.sh
authorAssaf Gordon <assafgordon@gmail.com>
Mon, 18 Jan 2016 18:16:35 +0000 (18:16 +0000)
committerPádraig Brady <P@draigBrady.com>
Mon, 18 Jan 2016 18:29:47 +0000 (18:29 +0000)
* tests/misc/head-c.sh: Further increase the limit to 8MB over
the base test command.  5.1MB was seen as minimum extra needed
on FreeBSD 9.3 x86_64.

tests/misc/head-c.sh

index cc544f97896224f99c5a7d97f2eaadbdf3ddcec6..abe9fef84c051436c0b5a8ec8821e4b5bbc41d25 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+4000)) && head --bytes=-$SSIZE_MAX < /dev/null) || fail=1
+(ulimit -v $(($vm+8000)) && head --bytes=-$SSIZE_MAX < /dev/null) || fail=1
 
 # Make sure it works on funny files in /proc and /sys.