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 v2] malloc: Add realloc test.


On Mon, 12 Aug 2013, Will Newton wrote:

> The current tests don't test the functionality of realloc in detail.
> Add a new test for realloc that exercises some of the corner cases
> that are not otherwise tested.

Given the confusion that has surrounded corner cases of realloc, could you 
clarify (in comments in the test) how exactly the requirements being 
tested are traced to C90, C99, C11 and POSIX (or to existing glibc 
practice, as applicable)?  (It appears you aren't testing the particularly 
problematic cases with size 0 - see 
<http://www.open-std.org/jtc1/sc22/wg14/www/docs/dr_400.htm> - but 
explicitly saying what tests trace to what standard requirements still 
seems a good idea.  Maybe a separate test should be added to verify as far 
as possible that glibc stays compatible with existing glibc practice for 
size 0.)

-- 
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]