mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-21 03:12:48 +02:00
dd: make status=none suppress all diagnostics
* src/dd.c (STATUS_NONE): Simplify the enum so that it's more general than just suppressing transfer counts. Then test this in all locations where non fatal diagnostics are output. * tests/dd/misc.sh: Ensure the diagnostic about being unable to skip past the end of input is suppressed. * NEWS: Mention the change in behavior. Fixes http://bugs.gnu.org/14897
This commit is contained in:
@@ -32,10 +32,12 @@ ln -s $tmp_in $tmp_sym || framework_failure_
|
||||
|
||||
# check status=none suppresses all output to stderr
|
||||
dd status=none if=$tmp_in of=/dev/null 2> err || fail=1
|
||||
test -s err && fail=1
|
||||
test -s err && { cat err; fail=1; }
|
||||
dd status=none if=$tmp_in skip=2 of=/dev/null 2> err || fail=1
|
||||
test -s err && { cat err; fail=1; }
|
||||
# check status=none is cumulative with status=noxfer
|
||||
dd status=none status=noxfer if=$tmp_in of=/dev/null 2> err || fail=1
|
||||
test -s err && fail=1
|
||||
test -s err && { cat err; fail=1; }
|
||||
|
||||
dd if=$tmp_in of=$tmp_out 2> /dev/null || fail=1
|
||||
compare $tmp_in $tmp_out || fail=1
|
||||
|
||||
Reference in New Issue
Block a user