This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [RFC][PATCH] malloc: Fix test for malloc_usable_size
- From: DJ Delorie <dj at redhat dot com>
- To: Matheus Castanho <msc at linux dot ibm dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Mon, 16 Dec 2019 15:52:11 -0500
- Subject: Re: [RFC][PATCH] malloc: Fix test for malloc_usable_size
Matheus Castanho <msc@linux.ibm.com> writes:
> But I'm still puzzled by why the test on malloc/tst-malloc-usable.c does
> not consider the possibility of the return value being greater than the
> requested alloc size, as the comment on the source indicates that could
> happen.
Well, we're testing our own implementation, so we should know exactly
what to expect. We're not testing that we meet some standard, we're
testing that we do what we expect.