[PATCH] test-skeleton.c: Use stderr for error messages

Will Newton will.newton@linaro.org
Fri Apr 11 13:39:00 GMT 2014


On 11 April 2014 14:16, Siddhesh Poyarekar <siddhesh@redhat.com> wrote:
> On Fri, Apr 11, 2014 at 11:00:29AM +0100, Will Newton wrote:
>> At the moment a mixture of stderr and stdout is used for error
>> messages. Switch to using stderr for consistency.
>>
>> ChangeLog:
>>
>> 2014-04-09  Will Newton  <will.newton@linaro.org>
>>
>>       * test-skeleton.c (create_temp_file): Use stderr for
>>       outputting error messages.  (main): Likewise.
>
> There was a discussion in the past about sticking to stdout for
> everything for consistency.  I can't find the link to it, but it is
> mentioned on the wiki:
>
> https://sourceware.org/glibc/wiki/Testing/Testsuite#Writing_a_test_case

So we should really be going the other way and outputting everything to stdout?

At the moment test stdout goes to the test output file but stderr goes
to the console. I'm not sure which is the more useful behaviour but
consistency certainly seems good.

-- 
Will Newton
Toolchain Working Group, Linaro



More information about the Libc-alpha mailing list