]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: printf-surprise: avoid unwarranted failure on FreeBSD 9.0
authorJim Meyering <meyering@redhat.com>
Sun, 5 Aug 2012 14:10:09 +0000 (16:10 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 6 Aug 2012 14:02:28 +0000 (16:02 +0200)
* tests/misc/printf-surprise: A VM size of 10,000KiB was too
little in which to run "env printf ..." on FreeBSD 9.0-p3.
Increase it to 15,000.

tests/misc/printf-surprise

index d15987bce83fbca8d63e07f634fbf29b21414dd4..b6f6275983e2899b10152611ca098b661a54e5e3 100755 (executable)
@@ -55,7 +55,10 @@ mkfifo_or_skip_ fifo
 export MALLOC_PERTURB_=0
 
 head -c 10 fifo > out &
-( ulimit -v 10000; env $prog %20000000f 0 2>err-msg > fifo )
+
+# Choosing the virtual memory limit, 11000 is enough, but 10000 is too
+# little and provokes a "memory exhausted" diagnostic on FreeBSD 9.0-p3.
+( ulimit -v 15000; env $prog %20000000f 0 2>err-msg > fifo )
 exit=$?
 
 # Map this longer, and rarer, diagnostic to the common one.