summaryrefslogtreecommitdiff
path: root/tests/misc
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2012-08-05 16:10:09 +0200
committerJim Meyering <meyering@redhat.com>2012-08-06 16:02:28 +0200
commit47583adceda8c9ad5f52805b7af3683179e0b4a6 (patch)
tree31451096a08ebcd940bce1192244546c03c1a674 /tests/misc
parentf1b85e3ca7265b3ced70f573fcfe02ce0ed6e189 (diff)
downloadcoreutils-47583adceda8c9ad5f52805b7af3683179e0b4a6.tar.xz
tests: printf-surprise: avoid unwarranted failure on FreeBSD 9.0
* 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.
Diffstat (limited to 'tests/misc')
-rwxr-xr-xtests/misc/printf-surprise5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/misc/printf-surprise b/tests/misc/printf-surprise
index d15987bce..b6f627598 100755
--- a/tests/misc/printf-surprise
+++ b/tests/misc/printf-surprise
@@ -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.