On FreeBSD 12.0: 1 test fails.
FAIL: tests/misc/csplit-io-err
==============================
0
--- exp 2020-02-29 11:57:09.266337000 +0100
+++ out 2020-02-29 11:57:09.314904000 +0100
@@ -1 +1 @@
-csplit: write error for 'xx01': No space left on device
+csplit: : No space left on device
FAIL tests/misc/csplit-io-err.sh (exit status: 1)
I could debug this failure: A modified 'csplit' program (with k.c
from tests/misc/csplit-io-err), invoked as
./csplit - 1 4 < in
hits the overridden fwrite() with a stack trace like this:
fwrite at k.c:10
rpl_vfprintf at lib/vfprintf.c:52
error_tail at lib/error.c:274
error at lib/error.c:323
save_line_to_file at src/csplit.c:1054
process_line_count at src/csplit.c:753
split_file at src/csplit.c:916
main at src/csplit.c:1464
The attached patch fixes it, by limiting the effect of the overridden
fwrite() to streams != stderr.