drd/tests/annotate_smart_pointer2: Filter out offset

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11898
This commit is contained in:
Bart Van Assche 2011-07-13 16:46:18 +00:00
parent b15c0697f9
commit 9c8728c421
4 changed files with 7 additions and 2 deletions

View File

@ -6,6 +6,7 @@ dist_noinst_SCRIPTS = \
filter_error_summary \
filter_stderr \
filter_stderr_and_thread_no \
filter_stderr_and_thread_no_and_offset \
run_openmp_test \
supported_libpthread \
supported_sem_init

View File

@ -1,7 +1,7 @@
Conflicting store by thread x at 0x........ size 4
at 0x........: main (annotate_smart_pointer.cpp:?)
Address 0x........ is at offset 24 from 0x......... Allocation context:
Address 0x........ is at offset ... from 0x......... Allocation context:
at 0x........: ...operator new... (vg_replace_malloc.c:...)
by 0x........: main (annotate_smart_pointer.cpp:?)

View File

@ -2,4 +2,4 @@ prereq: test -e annotate_smart_pointer && ./supported_libpthread
vgopts: --read-var-info=yes --check-stack-var=yes --show-confl-seg=no
prog: annotate_smart_pointer
args: 1 1 0
stderr_filter: filter_stderr_and_thread_no
stderr_filter: filter_stderr_and_thread_no_and_offset

View File

@ -0,0 +1,4 @@
#!/bin/sh
./filter_stderr_and_thread_no \
| sed "s/ is at offset [0-9]* from / is at offset ... from /"