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: libtest.a (was: Re: [PATCH] Fix p{readv,writev}{64} consolidation implementation)


On Thu, 23 Jun 2016, Florian Weimer wrote:

> What I mean is that the test harness pulls in stuff that cause things to
> interfere with what we want to test.  This could be magic symbols for
> stdio/libio compatibility, pthread symbols, or just calling mallopt (as
> discussed before).
> 
> If the test helpers are not in just one monolithic .c file, it helps with
> achieving that.

Also, test-skeleton.c doesn't work well with tests that wish to undefine 
_LIBC and _GNU_SOURCE in order to test non-GNU feature test macros / APIs 
/ strict standards conformance options, since it uses GNU APIs itself.  
If we change things so that most of the functionality is in a separate 
library or object (built with the usual _GNU_SOURCE), and test-skeleton 
itself is very minimal, then more tests can be made to use it.  (Of 
course, doing this means doing something about the various macros tests 
can define to change how test-skeleton behaves.)

-- 
Joseph S. Myers
joseph@codesourcery.com


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