This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]