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: Do we care about malloc failure in tests?


On Tue, May 31, 2016 at 3:02 PM, Mike Frysinger <vapier@gentoo.org> wrote:

> i'd really like to see xmalloc type helpers added to the test skeleton
> rather than change every test to include the same boiler plate

How does attached patch look?

If it's ok, I can commit it and then convert malloc/calloc/realloc in
tests to xmalloc and friends.

Thanks,

2016-06-05  Paul Pluzhnikov  <ppluzhnikov@google.com>

        * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc): New
functions.
        (add_temp_file): Use them.




-- 
Paul Pluzhnikov

Attachment: glibc-xmalloc-test-20160605.txt
Description: Text document


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