1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-17 12:52:16 +02:00

tests: more cases for read input diagnostics

* tests/misc/read-errors.sh: Exercise more modes of
various utilities for better read error coverage.
* tests/split/fail.sh: Remove part refactored into the above test.
This commit is contained in:
Pádraig Brady
2023-04-26 16:20:50 +01:00
parent 4eb5abbff4
commit 5e1c5f2d71
2 changed files with 21 additions and 12 deletions

View File

@@ -58,11 +58,4 @@ returns_ 1 split --number=r/$UINTMAX_OFLOW </dev/null 2>/dev/null || fail=1
# Make sure that a huge obsolete option does the right thing.
split -99999999999999999991 in || fail=1
# Make sure split fails when it can't read input
# (the current directory in this case)
if ! cat . >/dev/null; then
# can't read() directories
returns_ 1 split . || fail=1
fi
Exit $fail