]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: dd: fix false failure on NetBSD 10
authorPádraig Brady <P@draigBrady.com>
Mon, 16 Mar 2026 22:34:58 +0000 (22:34 +0000)
committerPádraig Brady <P@draigBrady.com>
Mon, 16 Mar 2026 22:34:58 +0000 (22:34 +0000)
* tests/dd/partial-write.sh: Skip the test if
nothing written at all, as was seen on NetBSD 10.
Reported by Bruno Haible.

tests/dd/partial-write.sh

index 2c3019491ccd812412526e9bd59ba1110346e9d3..80885d056f5f2b12150c71034e28c9d65a17c981 100755 (executable)
@@ -27,6 +27,7 @@ print_ver_ dd
 ret=$?
 
 if test $ret = 1; then
+  test -s f || skip_ 'The system disallowed all writes'
   grep -F '+1 records out' err || { cat err; fail=1; }
 elif test $ret = 0; then
   skip_ 'The system did not limit the file fize'