From f5422009389678680dba9ff4ecb7d33632ee3383 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 27 Mar 2017 20:34:39 -0700 Subject: [PATCH] tests: avoid false ulimit failure on some systems * tests/misc/cut-huge-range.sh: On some systems returns_ may use more memory, so incorporate that in the determination of the ulimit value to use. Noticed on ARMv7 with bash-4.4.12, and x86_64 with bash-4.2.37. Fixes http://bugs.gnu.org/26253 --- tests/misc/cut-huge-range.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/misc/cut-huge-range.sh b/tests/misc/cut-huge-range.sh index 6b3c5b6edf..55b7b640e1 100755 --- a/tests/misc/cut-huge-range.sh +++ b/tests/misc/cut-huge-range.sh @@ -20,9 +20,8 @@ print_ver_ cut getlimits_ -vm=$(get_min_ulimit_v_ cut -b1 /dev/null) \ +vm=$(get_min_ulimit_v_ returns_ 0 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. -- 2.47.2