diff options
author | Assaf Gordon <assafgordon@gmail.com> | 2015-11-12 05:20:29 -0500 |
---|---|---|
committer | Assaf Gordon <assafgordon@gmail.com> | 2015-11-12 15:17:55 -0500 |
commit | 4c5c6cad85ad67d96df261ec9abdab66590d9ceb (patch) | |
tree | c73bb9ec4a84db74db3c511b19fb6353c5915406 /tests/local.mk | |
parent | 0daa359de8edd09fe2df76cb26c7cef16da52ce3 (diff) | |
download | coreutils-4c5c6cad85ad67d96df261ec9abdab66590d9ceb.tar.xz |
csplit: check and report fwrite errors with errno
discussed in:
http://lists.gnu.org/archive/html/coreutils/2015-10/msg00091.html
* src/csplit.c: (save_line_to_file): check fwrite failures, report
and exit immediately instead of deferring to 'close_output'.
* tests/misc/csplit-io-err.sh: test fwrite failure using LD_PRELOAD.
* tests/local.mk: add new test.
Diffstat (limited to 'tests/local.mk')
-rw-r--r-- | tests/local.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/local.mk b/tests/local.mk index 675607e7a..adf96f015 100644 --- a/tests/local.mk +++ b/tests/local.mk @@ -274,6 +274,7 @@ all_tests = \ tests/misc/csplit.sh \ tests/misc/csplit-1000.sh \ tests/misc/csplit-heap.sh \ + tests/misc/csplit-io-err.sh \ tests/misc/csplit-suppress-matched.pl \ tests/misc/date-sec.sh \ tests/misc/dircolors.pl \ |