mirror of
git://sourceware.org/git/valgrind.git
synced 2026-01-12 00:19:31 +08:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
prereq: test -e bug492210
|
||||
prog: bug492210
|
||||
vgopts: -q
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
prereq: test -e bug492210
|
||||
prog: bug492210
|
||||
vgopts: -q --expensive-definedness-checks=yes
|
||||
|
||||
|
||||
4
memcheck/tests/amd64/filter_malloc_zone
Executable file
4
memcheck/tests/amd64/filter_malloc_zone
Executable file
@@ -0,0 +1,4 @@
|
||||
#! /bin/sh
|
||||
|
||||
./filter_stderr "$@" |
|
||||
sed 's/malloc_zone_memalign/posix_memalign/'
|
||||
7
memcheck/tests/amd64/filter_pcmpgt
Executable file
7
memcheck/tests/amd64/filter_pcmpgt
Executable 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/'
|
||||
@@ -1,3 +1,3 @@
|
||||
prog: pcmpgt amd64
|
||||
prereq: test -e pcmpgt
|
||||
stderr_filter: ../filter_allocs
|
||||
stderr_filter: filter_pcmpgt
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user