]> git.ipfire.org Git - thirdparty/glibc.git/commit
tests: use xmalloc to allocate implementation array
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Wed, 28 Jul 2021 07:33:27 +0000 (13:03 +0530)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Wed, 28 Jul 2021 12:15:19 +0000 (17:45 +0530)
commit70d08ba2046f4e589fdfa0f35999dfd413844bef
tree0026c2f791e064e35013f82337be9c2a49e6dd4c
parentb8e8bb324a376cd99bb61b6c21f63c395cae9b5d
tests: use xmalloc to allocate implementation array

The benchmark and tests must fail in case of allocation failure in the
implementation array.  Also annotate the x* allocators in support.h so
that the compiler has more information about them.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
benchtests/bench-string.h
string/test-string.h
support/support.h