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 Sun, Jun 5, 2016 at 6:54 PM, Mike Frysinger <vapier@gentoo.org> wrote:

> use printf as we don't let test write to stderr anymore
>
> might want to tweak the printf like so:
>   printf ("%s: allocation failed: %m\n", fn);

Done.

I think I can also remove this from xrealloc, since our realloc does
the right thing when p==NULL.

+  if (p == 0)
+    return xmalloc (n);

Ok to commit with these changes?

Thanks,
-- 
Paul Pluzhnikov


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