diff options
Diffstat (limited to 'libio/tst_putwc.c')
-rw-r--r-- | libio/tst_putwc.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libio/tst_putwc.c b/libio/tst_putwc.c index 142b3bc..60bb232 100644 --- a/libio/tst_putwc.c +++ b/libio/tst_putwc.c @@ -101,6 +101,16 @@ do_test (void) res = 1; } + /* Next test: write a bit more than a few bytes. */ + fp = fopen (outname, "w"); + if (fp == NULL) + error (EXIT_FAILURE, errno, "cannot open temporary file"); + + for (n = 0; n < 4098; ++n) + putwc (n & 255, fp); + + fclose (fp); + return res; } |