2017-03-25 18:28:54 -04:00
|
|
|
This patch fixes 100% reproducible test failures on arm-linux-gnueabihf in our
|
2017-04-08 17:20:54 -04:00
|
|
|
the build environment chroot, as reported at <https://bugs.gnu.org/26253>,
|
|
|
|
and now on x86_64-linux-gnu as well. It is a variant of this upstream patch:
|
2017-03-25 18:28:54 -04:00
|
|
|
|
2017-04-08 17:20:54 -04:00
|
|
|
commit f5422009389678680dba9ff4ecb7d33632ee3383
|
|
|
|
Author: Ludovic Courtès <ludo@gnu.org>
|
|
|
|
Date: Mon Mar 27 20:34:39 2017 -0700
|
2017-03-25 18:28:54 -04:00
|
|
|
|
2017-04-08 17:20:54 -04:00
|
|
|
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
|
2017-03-25 18:28:54 -04:00
|
|
|
|
|
|
|
... which appeared to be insufficient.
|
|
|
|
|
2017-04-08 17:20:54 -04:00
|
|
|
diff --git a/tests/misc/cut-huge-range.sh b/tests/misc/cut-huge-range.sh
|
|
|
|
index 6b3c5b6ed..55b7b640e 100755
|
2017-03-25 18:28:54 -04:00
|
|
|
--- a/tests/misc/cut-huge-range.sh
|
|
|
|
+++ b/tests/misc/cut-huge-range.sh
|
2017-04-08 17:20:54 -04:00
|
|
|
@@ -20,9 +20,9 @@
|
|
|
|
print_ver_ cut
|
|
|
|
getlimits_
|
2017-03-25 18:28:54 -04:00
|
|
|
|
2017-04-08 17:20:54 -04:00
|
|
|
-vm=$(get_min_ulimit_v_ cut -b1 /dev/null) \
|
|
|
|
+vm=$(get_min_ulimit_v_ sh -c 'cut -b1 /dev/null') \
|
2017-03-25 18:28:54 -04:00
|
|
|
|| skip_ "this shell lacks ulimit support"
|
2017-04-08 17:20:54 -04:00
|
|
|
vm=$(($vm + 1000)) # avoid spurious failures
|
2017-03-25 18:28:54 -04:00
|
|
|
|
|
|
|
# sed script to subtract one from the input.
|
|
|
|
# Each input line should consist of a positive decimal number.
|