mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-21 11:16:16 +02:00
tests: avoid false failure on CentOS 5,6,7
* 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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user