]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: use more accurate ulimit with $SHELL -c
authorPádraig Brady <P@draigBrady.com>
Wed, 15 Apr 2026 14:23:11 +0000 (15:23 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 15 Apr 2026 14:24:26 +0000 (15:24 +0100)
* tests/misc/write-errors.sh: Use a more accurate ulimit determination
when we're using $SHELL -c.

tests/misc/write-errors.sh

index c97da3b01ca4d6cce3bac7c4976f22ff15543248..965afc65235fc7fa7ed65fa8b8da2c0ba4e045f9 100755 (executable)
@@ -78,7 +78,7 @@ join all_writers built_programs > built_writers || framework_failure_
 while read writer; do
   # Enforce mem usage limits if possible
   cmd=$(printf '%s\n' "$writer" | cut -d ' ' -f1) || framework_failure_
-  base_mem=$(get_min_ulimit_v_ $cmd --version) \
+  base_mem=$(get_min_ulimit_v_ $SHELL -c "$cmd --version") \
     && ulimit="ulimit -v $(($base_mem+12000))" \
     || skip_ 'unable to determine ulimit -v'