Darwin regtest: various filters

Use -q to hide Darwin leaks in HEAP SUMMARY
The pcmpgt test uses uint64_t whish is unsigned long long on Darwin
but unsigned long on all other amd64 OSes
Swap malloc_zone_memalign with posix_memalign
This commit is contained in:
Paul Floyd
2025-10-30 21:29:28 +01:00
parent 931b7ead24
commit 8aaa141241
10 changed files with 19 additions and 26 deletions

View File

@@ -1,7 +1,7 @@
include $(top_srcdir)/Makefile.tool-tests.am
dist_noinst_SCRIPTS = filter_stderr
dist_noinst_SCRIPTS = filter_stderr filter_malloc_zone filter_pcmpgt
INSN_TESTS = insn_basic insn_mmx insn_sse insn_sse2 insn_fpu

View File

@@ -1,3 +1,4 @@
prereq: test -e bug492210
prog: bug492210
vgopts: -q

View File

@@ -1,3 +1,4 @@
prereq: test -e bug492210
prog: bug492210
vgopts: -q --expensive-definedness-checks=yes

View File

@@ -0,0 +1,4 @@
#! /bin/sh
./filter_stderr "$@" |
sed 's/malloc_zone_memalign/posix_memalign/'

View File

@@ -0,0 +1,7 @@
#! /bin/sh
../filter_allocs "$@" |
# on Darwin "uint64_t" becomes unsigned long long
# on other platforms it is unsigned long
sed 's/unsigned long long/unsigned long/'

View File

@@ -1,3 +1,3 @@
prog: pcmpgt amd64
prereq: test -e pcmpgt
stderr_filter: ../filter_allocs
stderr_filter: filter_pcmpgt

View File

@@ -1,3 +1,4 @@
prog: sh-mem-vec128
args: -q
vgopts: --partial-loads-ok=no
vgopts: --partial-loads-ok=no -q
stderr_filter: filter_malloc_zone

View File

@@ -1,3 +1,4 @@
prog: sh-mem-vec128
args: -q
vgopts: --partial-loads-ok=yes
vgopts: --partial-loads-ok=yes -q
stderr_filter: filter_malloc_zone

View File

@@ -1,4 +1,3 @@
sh-mem-vec128: config: little-endian, 64-bit word size
20537 136 171 75 38 63 139 23 5 110 66 421 194 86 232 115
@@ -529,13 +528,3 @@ Invalid read of size 16
dddddddddddddddd
HEAP SUMMARY:
in use at exit: 0 bytes in 0 blocks
total heap usage: 33 allocs, 33 frees, 82,048 bytes allocated
For a detailed leak analysis, rerun with: --leak-check=full
Use --track-origins=yes to see where uninitialised values come from
For lists of detected and suppressed errors, rerun with: -s
ERROR SUMMARY: 66 errors from 66 contexts (suppressed: 0 from 0)

View File

@@ -1,4 +1,3 @@
sh-mem-vec128: config: little-endian, 64-bit word size
20537 136 171 75 38 63 139 23 5 110 66 421 194 86 232 115
@@ -436,13 +435,3 @@ Invalid read of size 16
dddddddddddddddd
HEAP SUMMARY:
in use at exit: 0 bytes in 0 blocks
total heap usage: 33 allocs, 33 frees, 82,048 bytes allocated
For a detailed leak analysis, rerun with: --leak-check=full
Use --track-origins=yes to see where uninitialised values come from
For lists of detected and suppressed errors, rerun with: -s
ERROR SUMMARY: 51 errors from 51 contexts (suppressed: 0 from 0)