On 10/01/2026 05:22, Collin Funk wrote:
There isn't really a good case for the non --check case. If a system
has a small limit on the maximum number of arguments it will run too
quickly.

Nice one. I'd make two small tweaks,

cheers,
Padraig

diff --git a/tests/misc/write-errors.sh b/tests/misc/write-errors.sh
index 43397e4fa..3773dda39 100755
--- a/tests/misc/write-errors.sh
+++ b/tests/misc/write-errors.sh
@@ -24,14 +24,14 @@ if ! test -w /dev/full || ! test -c /dev/full; then
   skip_ '/dev/full is required'
 fi

-dev_null_hash=$(cksum -a sha3 -l 256 /dev/null)
+dev_null_hash=$(cksum -a sha3 -l 256 /dev/null) || framework_failure_

 # Writers that may output data indefinitely.
 # First word in command line is checked against built programs.
 # Escapes must be double escaped.
 printf '%s' "\
 cat /dev/zero
-cksum --version; yes \"${dev_null_hash}\" | cksum --check
+cksum --version; yes '${dev_null_hash}' | cksum --check
 comm -z /dev/zero /dev/zero
 cut -z -c1- /dev/zero
 cut -z -f1- /dev/zero



Reply via email to