[PATCH] Exclude tst-realloc from tests-mcheck
Siddhesh Poyarekar
siddhesh@sourceware.org
Tue Jul 6 16:01:32 GMT 2021
The realloc (NULL, 0) test in tst-realloc fails with gcc 7.x but
passes with newer gcc. This is because a newer gcc transforms the
realloc call to malloc (0), thus masking the bug in mcheck.
Disable the test with mcheck for now. The malloc removal patchset
will fix this and then remove this test from the exclusion list.
I'll push this soon if there are no objections. I'll also post an
updated malloc hooks patchset with these issues fixed.
Reported-by: Stefan Liebler <stli@linux.ibm.com>
---
malloc/Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/malloc/Makefile b/malloc/Makefile
index 2f9b3d596d..2af1203a0a 100644
--- a/malloc/Makefile
+++ b/malloc/Makefile
@@ -93,7 +93,8 @@ tests-exclude-mcheck = tst-mallocstate \
tst-malloc-usable-tunables \
tst-malloc_info \
tst-memalign \
- tst-posix_memalign
+ tst-posix_memalign \
+ tst-posix-realloc
tests-mcheck = $(filter-out $(tests-exclude-mcheck), $(tests))
--
2.31.1
More information about the Libc-alpha
mailing list