Mark Wielaard a31be8
commit 6f0b0c294b995df6c32edc75f90dfac3ad04114a
Mark Wielaard a31be8
Author: mjw <mjw@a5019735-40e9-0310-863c-91ae7b9d1cf9>
Mark Wielaard a31be8
Date:   Thu Mar 28 22:52:13 2013 +0000
Mark Wielaard a31be8
Mark Wielaard a31be8
    memcheck/tests/strchr test should not depend on line numbers.
Mark Wielaard a31be8
    
Mark Wielaard a31be8
    git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13348 a5019735-40e9-0310-863c-91ae7b9d1cf9
Mark Wielaard a31be8
Mark Wielaard a31be8
diff --git a/memcheck/tests/strchr.stderr.exp3 b/memcheck/tests/strchr.stderr.exp3
Mark Wielaard a31be8
index 9f90e69..e1832fa 100644
Mark Wielaard a31be8
--- a/memcheck/tests/strchr.stderr.exp3
Mark Wielaard a31be8
+++ b/memcheck/tests/strchr.stderr.exp3
Mark Wielaard a31be8
@@ -1,9 +1,9 @@
Mark Wielaard a31be8
 Conditional jump or move depends on uninitialised value(s)
Mark Wielaard a31be8
-   at 0x........: __GI_strchr (mc_replace_strmem.c:211)
Mark Wielaard a31be8
+   at 0x........: __GI_strchr (mc_replace_strmem.c:...)
Mark Wielaard a31be8
    by 0x........: main (strchr.c:15)
Mark Wielaard a31be8
 
Mark Wielaard a31be8
 Conditional jump or move depends on uninitialised value(s)
Mark Wielaard a31be8
-   at 0x........: __GI_strchr (mc_replace_strmem.c:211)
Mark Wielaard a31be8
+   at 0x........: __GI_strchr (mc_replace_strmem.c:...)
Mark Wielaard a31be8
    by 0x........: main (strchr.c:15)
Mark Wielaard a31be8
 
Mark Wielaard a31be8
 Conditional jump or move depends on uninitialised value(s)
Mark Wielaard a31be8
diff --git a/memcheck/tests/strchr.vgtest b/memcheck/tests/strchr.vgtest
Mark Wielaard a31be8
index e914726..152c97e 100644
Mark Wielaard a31be8
--- a/memcheck/tests/strchr.vgtest
Mark Wielaard a31be8
+++ b/memcheck/tests/strchr.vgtest
Mark Wielaard a31be8
@@ -1,2 +1,3 @@
Mark Wielaard a31be8
 prog: strchr
Mark Wielaard a31be8
 vgopts: -q
Mark Wielaard a31be8
+stderr_filter_args: strchr.c
Mark Wielaard a31be8
Mark Wielaard a31be8
commit 48b0ae338abe2dcd726e1733532a971837049ceb
Mark Wielaard a31be8
Author: mjw <mjw@a5019735-40e9-0310-863c-91ae7b9d1cf9>
Mark Wielaard a31be8
Date:   Thu Mar 28 22:52:14 2013 +0000
Mark Wielaard a31be8
Mark Wielaard a31be8
    For memcheck overlap filter_memcpy str[n]cpy and __GI_str[n]cpy are equal.
Mark Wielaard a31be8
    
Mark Wielaard a31be8
    git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13349 a5019735-40e9-0310-863c-91ae7b9d1cf9
Mark Wielaard a31be8
Mark Wielaard a31be8
diff --git a/memcheck/tests/filter_memcpy b/memcheck/tests/filter_memcpy
Mark Wielaard a31be8
index 47741ba..737304c 100755
Mark Wielaard a31be8
--- a/memcheck/tests/filter_memcpy
Mark Wielaard a31be8
+++ b/memcheck/tests/filter_memcpy
Mark Wielaard a31be8
@@ -1,5 +1,8 @@
Mark Wielaard a31be8
 #! /bin/sh
Mark Wielaard a31be8
 
Mark Wielaard a31be8
 # mc_replace_strmem.c intercepts various memcpy glibc versions.
Mark Wielaard a31be8
+# mc_replace_strmem.c str[n]cpy and __GI_str[n]cpy are the same.
Mark Wielaard a31be8
 ./filter_stderr "$@" |
Mark Wielaard a31be8
-perl -p -e "s/: memcpy\@\@?GLIBC_[.1-9]+ \(mc_replace_strmem.c:...\)/: memcpy \(mc_replace_strmem.c:...\)/"
Mark Wielaard a31be8
+perl -p -e "s/: memcpy\@\@?GLIBC_[.1-9]+ \(mc_replace_strmem.c:...\)/: memcpy \(mc_replace_strmem.c:...\)/" |
Mark Wielaard a31be8
+sed -e "s/: __GI_strcpy (mc_replace_strmem.c:/: strcpy (mc_replace_strmem.c:/" |
Mark Wielaard a31be8
+sed -e "s/: __GI_strncpy (mc_replace_strmem.c:/: strncpy (mc_replace_strmem.c:/"