mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-12 15:06:44 +02:00
tests: cp: ensure --debug output failure is diagnosed
* tests/cp/debug.sh: cp diagnostics are written to stdout, so ensure output errors are diagnosed. https://github.com/coreutils/coreutils/pull/192
This commit is contained in:
@@ -29,4 +29,9 @@ touch file.cp || framework_failure_
|
||||
cp --debug --update=none file file.cp >cp.out || fail=1
|
||||
grep 'skipped' cp.out || fail=1
|
||||
|
||||
if test -w /dev/full && test -c /dev/full; then
|
||||
returns_ 1 cp file file.cp2 --debug >/dev/full || fail=1
|
||||
test -e file.cp2 || fail=1
|
||||
fi
|
||||
|
||||
Exit $fail
|
||||
|
||||
Reference in New Issue
Block a user