strchr.vgtest mc_replace_strmem.c [r]index and [__GI_]str[r]chr are the same.

Add memcheck/tests/filter_strchr to make it so for the testcase.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13370
This commit is contained in:
Mark Wielaard 2013-04-17 15:23:22 +00:00
parent 1156c98b80
commit bca0cb2aa5
3 changed files with 10 additions and 0 deletions

View File

@ -43,6 +43,7 @@ dist_noinst_SCRIPTS = \
filter_allocs \
filter_leak_cases_possible \
filter_stderr filter_xml \
filter_strchr \
filter_varinfo3 \
filter_memcheck \
filter_memcpy

8
memcheck/tests/filter_strchr Executable file
View File

@ -0,0 +1,8 @@
#! /bin/sh
# mc_replace_strmem.c [r]index and [__GI_]str[r]chr are the same.
./filter_stderr "$@" |
sed -e "s/: __GI_strchr (mc_replace_strmem.c:/: strchr (mc_replace_strmem.c:/" |
sed -e "s/: strchr (mc_replace_strmem.c:/: index (mc_replace_strmem.c:/" |
sed -e "s/: __GI_strrchr (mc_replace_strmem.c:/: strrchr (mc_replace_strmem.c:/" |
sed -e "s/: strrchr (mc_replace_strmem.c:/: rindex (mc_replace_strmem.c:/"

View File

@ -1,3 +1,4 @@
prog: strchr
vgopts: -q
stderr_filter: filter_strchr
stderr_filter_args: strchr.c