]> Savannah Git Hosting - gnulib.git/commit
realloc-gnu: avoid glibc MALLOC_CHECK_ issue
authorPádraig Brady <P@draigBrady.com>
Sat, 15 May 2021 16:50:33 +0000 (17:50 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 15 May 2021 18:05:22 +0000 (20:05 +0200)
commit1a72950760b1fce763ff834de0d545caab8a983c
tree6ff22939e80f502c74f625ed0b741ceea971c5bd
parentaa0bbfd233d2d8a9d46e215ffdb47c4b167aba4e
realloc-gnu: avoid glibc MALLOC_CHECK_ issue

* tests/test-realloc-gnu.c (main): if MALLOC_CHECK_ env var
is set then don't check ENOMEM is returned from realloc().
See https://sourceware.org/bugzilla/show_bug.cgi?id=27870
Note it doesn't suffice to unsetenv() this var within the program,
as the hooks have already been set up at that stage.
ChangeLog
tests/test-realloc-gnu.c