From: oech3 <79379754+oech3@users.noreply.github.com> Date: Thu, 12 Feb 2026 16:32:19 +0000 (+0000) Subject: tests: cp: ensure --debug output failure is diagnosed X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc42e7d28110bcae5777de1d1ba910d5a289673a;p=thirdparty%2Fcoreutils.git 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 --- diff --git a/tests/cp/debug.sh b/tests/cp/debug.sh index 25ea639ecd..deff053576 100755 --- a/tests/cp/debug.sh +++ b/tests/cp/debug.sh @@ -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