This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Increase width of padded output in stdio-common/tst-put-error
On Thu, 6 Dec 2012, Siddhesh Poyarekar wrote:
> I just added the test there since it seemed like the right place to
> put it - it still does to me. What's missing in the last bit I added
> is the newline that forces the flush due to setlinebuf for the last
> case just like the earlier cases, so if it's OK, I'll add it in.
I thought the point of the padded test was to verify the path for errors
propagating through _IO_padn - which requires the error to occur while the
padding itself is being passed to _IO_sputn (that is, for the padding to
fill the buffer itself) rather than when anything after the padding causes
a flush.
--
Joseph S. Myers
joseph@codesourcery.com