Do we care about malloc failure in tests?

Paul Pluzhnikov ppluzhnikov@google.com
Mon Jun 6 02:01:00 GMT 2016


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



More information about the Libc-alpha mailing list