diff options
| author | Pádraig Brady <P@draigBrady.com> | 2025-10-22 16:11:53 +0100 |
|---|---|---|
| committer | Pádraig Brady <P@draigBrady.com> | 2025-10-22 16:18:06 +0100 |
| commit | c12a2ecb53e9c141e705a2e4645de5201237a1f6 (patch) | |
| tree | 1a6d6527dfd46154be0fdcbffa4303579a5c6827 /tests/misc/write-errors.sh | |
| parent | numfmt: promptly diagnose write errors (diff) | |
| download | coreutils-c12a2ecb53e9c141e705a2e4645de5201237a1f6.tar.gz coreutils-c12a2ecb53e9c141e705a2e4645de5201237a1f6.zip | |
fmt: promptly diagnose write errors
* NEWS: Mention the improvement.
* src/fmt.c (put_line): Exit if any error writing line.
(flush_paragraph): Exit if any error writing buffer.
* tests/misc/write-errors.sh: Enable the (flush_paragraph) test case,
and add another to check the put_line() case.
Diffstat (limited to 'tests/misc/write-errors.sh')
| -rwxr-xr-x | tests/misc/write-errors.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/misc/write-errors.sh b/tests/misc/write-errors.sh index 782ccae5a..48f9c0f1a 100755 --- a/tests/misc/write-errors.sh +++ b/tests/misc/write-errors.sh @@ -33,7 +33,8 @@ cut -z -f1- /dev/zero dd if=/dev/zero expand /dev/zero factor --version; yes 1 | factor -# TODO: fmt /dev/zero +fmt /dev/zero +fmt --version; yes | fmt fold /dev/zero fold -b /dev/zero fold -c /dev/zero |
