From: Paul Floyd Date: Thu, 30 Oct 2025 20:00:59 +0000 (+0100) Subject: Darwin regtest: filter malloc_zone_memalign X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=931b7ead241f676ba36453cdee8552a9851a40a9;p=thirdparty%2Fvalgrind.git Darwin regtest: filter malloc_zone_memalign --- diff --git a/memcheck/tests/Makefile.am b/memcheck/tests/Makefile.am index f85b69ba0..fd3f89cd2 100644 --- a/memcheck/tests/Makefile.am +++ b/memcheck/tests/Makefile.am @@ -95,7 +95,8 @@ dist_noinst_SCRIPTS = \ filter_stanza \ filter_stanza.awk \ filter_used_supp \ - filter_stanza_and_size_t + filter_stanza_and_size_t \ + filter_malloc_zone noinst_SCRIPTS = \ filter_dw4 \ diff --git a/memcheck/tests/filter_malloc_zone b/memcheck/tests/filter_malloc_zone new file mode 100755 index 000000000..793dfe531 --- /dev/null +++ b/memcheck/tests/filter_malloc_zone @@ -0,0 +1,4 @@ +#! /bin/sh + +./filter_stderr "$@" | +sed 's/malloc_zone_memalign/memalign/' diff --git a/memcheck/tests/posix_memalign.stderr.exp-darwin b/memcheck/tests/posix_memalign.stderr.exp-darwin index 26472d08b..f044fa1bf 100644 --- a/memcheck/tests/posix_memalign.stderr.exp-darwin +++ b/memcheck/tests/posix_memalign.stderr.exp-darwin @@ -1,4 +1,4 @@ -posix_memalign() invalid size value: 0 +Unsafe allocation with size of zero is implementation-defined at 0x........: malloc_zone_memalign (vg_replace_malloc.c:...) by 0x........: posix_memalign (in /...libc...) by 0x........: main (posix_memalign.c:32) diff --git a/memcheck/tests/test-plo-no.vgtest b/memcheck/tests/test-plo-no.vgtest index cbe322cbc..b09ebad95 100644 --- a/memcheck/tests/test-plo-no.vgtest +++ b/memcheck/tests/test-plo-no.vgtest @@ -1,2 +1,3 @@ prog: test-plo vgopts: -q --partial-loads-ok=no --keep-stacktraces=alloc-then-free +stderr_filter: filter_malloc_zone