]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: avoid a spurious failure on older debian
authorPádraig Brady <P@draigBrady.com>
Fri, 3 Mar 2017 08:25:54 +0000 (00:25 -0800)
committerPádraig Brady <P@draigBrady.com>
Fri, 3 Mar 2017 08:25:54 +0000 (00:25 -0800)
* tests/misc/cut-huge-range.sh: Bump up the ulimit,
to avoid a false failure due hitting the previously
detected ulimit.
Reported by Assaf Gordon.

tests/misc/cut-huge-range.sh

index c015ac58cbe5ff72f4dc72dc523eb1744fc8fb4c..6b3c5b6edf5738615b1e34a2c8d3895ca93601bb 100755 (executable)
@@ -22,6 +22,7 @@ getlimits_
 
 vm=$(get_min_ulimit_v_ cut -b1 /dev/null) \
   || skip_ "this shell lacks ulimit support"
+vm=$(($vm + 1000)) # avoid spurious failures
 
 # sed script to subtract one from the input.
 # Each input line should consist of a positive decimal number.