]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: split: avoid a false failure when ulimit fails
authorCollin Funk <collin.funk1@gmail.com>
Tue, 16 Jun 2026 05:06:22 +0000 (22:06 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Tue, 16 Jun 2026 05:06:22 +0000 (22:06 -0700)
* tests/split/suffix-length.sh: Don't fail the test case if ulimit
fails.
Reported by Bruno Haible.

tests/split/suffix-length.sh

index 0b2bf3894a04bbba81341dc968f9e41285ebe767..5fca73adaa80cd711fd9cfc15798b600372f3571 100755 (executable)
@@ -78,7 +78,10 @@ test -f xaa && fail=1
 rm -f x*
 vm=$(get_min_ulimit_v_ split -a 1 /dev/null)
 if test -n "$vm"; then
-  (ulimit -v $(($vm+6000)) && returns_ 1 split -a 66542562175252 in) || fail=1
+  (ulimit -v $(($vm+6000)) &&
+   touch ulimit-worked &&
+   returns_ 1 split -a 66542562175252 in) ||
+    { test -f ulimit-worked && fail=1; }
   test -f xaa && fail=1
 fi