]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: avoid false failure on CentOS 5,6,7
authorPádraig Brady <P@draigBrady.com>
Sat, 20 Sep 2025 15:10:16 +0000 (16:10 +0100)
committerPádraig Brady <P@draigBrady.com>
Sat, 20 Sep 2025 15:17:43 +0000 (16:17 +0100)
* tests/fold/fold-zero-width.sh: Increase vm limit to avoid
failures on CentOS 5,6,7.  Match the limit used in write-errors.sh
as per commit v9.5-255-g0bd149403

tests/fold/fold-zero-width.sh

index f69d89f13042cc26c4e43272247ee040c12b146d..b876473c752a89f43b13fd880b565eefc30365c5 100755 (executable)
@@ -52,7 +52,7 @@ vm=$(get_min_ulimit_v_ fold /dev/null) && {
   # \303 results in EILSEQ on input
   for c in '\n' '\0' '\303'; do
     tr '\0' "$c" < /dev/zero | timeout 10 $SHELL -c \
-     "(ulimit -v $(($vm+8000)) && fold 2>err >/dev/full)"
+     "(ulimit -v $(($vm+12000)) && fold 2>err >/dev/full)"
     { test $? = 124 || ! grep 'space' err >/dev/null; } &&
      { fail=1; cat err; echo "fold didn't diagnose ENOSPC" >&2; }
   done