]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: shuf: check that write errors are promptly diagnosed
authorCollin Funk <collin.funk1@gmail.com>
Sun, 22 Feb 2026 04:16:43 +0000 (20:16 -0800)
committerCollin Funk <collin.funk1@gmail.com>
Sun, 22 Feb 2026 04:16:43 +0000 (20:16 -0800)
* tests/misc/write-errors.sh: Add a shuf invocation that would run
forever if write errors weren't diagnosed.

tests/misc/write-errors.sh

index 20ba0ab1c35180ad6ad1cf30524fd486b7cb6531..53111417aacf5fb8cd5aff6bd1fc69174bb32840 100755 (executable)
@@ -56,6 +56,7 @@ paste /dev/zero
 pr /dev/zero
 pr --version; yes 1 | pr
 seq inf
+shuf -i 0-1 -r
 tail -n+1 -z /dev/zero
 tee < /dev/zero
 tr . . < /dev/zero