]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: adjust csplit VM limit
authorPádraig Brady <P@draigBrady.com>
Thu, 30 Mar 2023 13:28:03 +0000 (14:28 +0100)
committerPádraig Brady <P@draigBrady.com>
Fri, 31 Mar 2023 10:58:53 +0000 (11:58 +0100)
* tests/misc/csplit-heap.sh: More memory is required to avoid
a false failure on some systems.  Noticed with musl libc
with bash as the shell.  This is confirmed to still easily
trigger with the original memory leak being tested.
Addresses https://bugs.gnu.org/62542

tests/misc/csplit-heap.sh

index 2ba3c4500959c4b19f1ddf14e1fe3c15525237a2..36b286b930fd9bf5d7da0b6638f1e15b027ab2f6 100755 (executable)
@@ -25,7 +25,7 @@ vm=$(get_min_ulimit_v_ csplit -z f %n%1) \
   || skip_ "this shell lacks ulimit support"
 
 (
- ulimit -v $(($vm + 1000)) \
+ ulimit -v $(($vm + 4000)) \
    && { yes | head -n2500000; echo n; } | csplit -z - %n%1
 ) || fail=1