]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: fix false failure in recent memory limit test
authorPádraig Brady <P@draigBrady.com>
Mon, 13 Oct 2025 12:22:38 +0000 (13:22 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 13 Oct 2025 12:22:38 +0000 (13:22 +0100)
* tests/basenc/bounded-memory.sh: Ensure we skip the test
upon failure to determine the memory lower bound.
Reported by Bruno Haible.

tests/basenc/bounded-memory.sh

index 7f85189b097065ebacf0af0122bb18642cbe161b..55e7cc310f65fe78ca6e3cc2223a6f4cdebe02c4 100755 (executable)
@@ -19,7 +19,8 @@
 . "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
 print_ver_ basenc
 
-vm=$(get_min_ulimit_v_ basenc --base64 /dev/null)
+vm=$(get_min_ulimit_v_ basenc --base64 /dev/null) ||
+  skip_ 'failed to determine memory limit'
 
 # Check all except for --base58.
 for algorithm in '--base64' '--base64url' '--base32' '--base32hex' '--base16' \