coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] tests: printf-surprise: avoid unwarranted failure on FreeBSD 9.0


From: Jim Meyering
Subject: [PATCH] tests: printf-surprise: avoid unwarranted failure on FreeBSD 9.0
Date: Sun, 05 Aug 2012 16:29:13 +0200

The printf-surprise test failed on FreeBSD 9.0 not because of
a printf problem per se, but because the cost of running printf
there has just surpassed our semi-arbitrary ulimit of 10,000KiB.
Here's the fix:

>From c3b777e07d175713745a162d60acd11af427e159 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Sun, 5 Aug 2012 16:10:09 +0200
Subject: [PATCH] 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.
---
 tests/misc/printf-surprise | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/misc/printf-surprise b/tests/misc/printf-surprise
index d15987b..b6f6275 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.
--
1.7.12.rc1.10.g97c7934



reply via email to

[Prev in Thread] Current Thread [Next in Thread]