diff options
| author | Pádraig Brady <P@draigBrady.com> | 2025-01-15 15:13:00 +0000 |
|---|---|---|
| committer | Pádraig Brady <P@draigBrady.com> | 2025-01-15 17:07:13 +0000 |
| commit | 61d4935802e706bd32387bf052b89286c754e2ae (patch) | |
| tree | 29fb67b64eb87d2b0fa16781b6db5fe5a135cab8 /tests/misc/write-errors.sh | |
| parent | tests: use more portable timeout presence check (diff) | |
| download | coreutils-61d4935802e706bd32387bf052b89286c754e2ae.tar.gz coreutils-61d4935802e706bd32387bf052b89286c754e2ae.zip | |
tests: avoid slow ulimit -v behavior
* init.cfg (ulimit_supported_): skip_ if the ulimit -v
takes too long, which was seen with bash 5.2 on Solaris 11,
where fork() returned EAGAIN under memory constraints,
and bash retried for about 16 seconds.
(get_min_ulimit_v_): Break early if skipped.
* tests/misc/write-errors.sh: Be more conservative and
skip on failure to determine min ulimit.
Diffstat (limited to 'tests/misc/write-errors.sh')
| -rwxr-xr-x | tests/misc/write-errors.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/misc/write-errors.sh b/tests/misc/write-errors.sh index 78379b542..13e6d11fa 100755 --- a/tests/misc/write-errors.sh +++ b/tests/misc/write-errors.sh @@ -62,7 +62,7 @@ while read writer; do cmd=$(printf '%s\n' "$writer" | cut -d ' ' -f1) || framework_failure_ base_mem=$(get_min_ulimit_v_ $cmd --version) \ && ulimit="ulimit -v $(($base_mem+8000))" \ - || ulimit='true' + || skip_ 'unable to determine ulimit -v' # Check /dev/full handling rm -f full.err || framework_failure_ |
