]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: dd: avoid false failure on Solaris 10
authorPádraig Brady <P@draigBrady.com>
Sat, 20 Sep 2025 16:46:11 +0000 (17:46 +0100)
committerPádraig Brady <P@draigBrady.com>
Sat, 20 Sep 2025 21:12:58 +0000 (22:12 +0100)
* tests/dd/no-allocate.sh: Give some extra space to the
determined vm limit.

tests/dd/no-allocate.sh

index c9df21d40a9eff648a5846ead9fe571ff77a6315..6746d5c706a291bd51a67100c6b92dcbd2f7da86 100755 (executable)
@@ -43,7 +43,7 @@ check_dd_seek_alloc() {
   timeout 10 dd count=1 if=/dev/zero of=tape&
 
   # Allocate buffer and read from the "tape"
-  (ulimit -v $vm \
+  (ulimit -v $(($vm+4000)) \
      && timeout 10 dd $dd_buf=30M $dd_op=1 count=0 $dd_file=tape)
   local ret=$?