]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: avoid false failure due to ulimit on aarch64
authorPádraig Brady <P@draigBrady.com>
Mon, 22 Dec 2025 17:12:48 +0000 (17:12 +0000)
committerPádraig Brady <P@draigBrady.com>
Mon, 22 Dec 2025 17:12:48 +0000 (17:12 +0000)
* tests/cut/cut-huge-range.sh: Add an extra 1MiB headroom,
which was seen with aarch64.
Reported at https://bugzilla.redhat.com/2424302

tests/cut/cut-huge-range.sh

index 4bd1b129d8a99a0d8dbad89c0c0883c114eb734a..98d7e8f0b998640a31bf07ed1a8e9b514c920b42 100755 (executable)
@@ -22,6 +22,7 @@ getlimits_
 
 vm=$(get_min_ulimit_v_ returns_ 0 cut -b1 /dev/null) \
   || skip_ 'shell lacks ulimit, or ASAN enabled'
+vm=$(($vm+1000))  # https://bugzilla.redhat.com/2424302
 
 # Ensure we can cut up to our sentinel value.
 CUT_MAX=$(expr $UINTMAX_MAX - 1) || framework_failure_