]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Move the functionality from filter_threadnums into filter_stderr, so that
authorJulian Seward <jseward@acm.org>
Thu, 18 Dec 2008 08:27:32 +0000 (08:27 +0000)
committerJulian Seward <jseward@acm.org>
Thu, 18 Dec 2008 08:27:32 +0000 (08:27 +0000)
it applies to all tests.  Then remove all references to filter_threadnums.

Also:

* match and transform not only "Thread #n" and "thread #n"
  but also "Thread n" and "thread n", where n is [0-9][0-9]*.

* use -e ... for the sed commands where possible, to reduce the number
  of processes that have to be started

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8839

helgrind/tests/Makefile.am
helgrind/tests/filter_stderr
helgrind/tests/filter_threadnums [deleted file]
helgrind/tests/pth_barrier1.vgtest
helgrind/tests/pth_barrier2.vgtest
helgrind/tests/pth_barrier3.vgtest
helgrind/tests/tc21_pthonce.vgtest

index 35e15bb9fc00ebf6f4372896e8fd709a5d7e49a7..c3c3597f18e2f5c83f06da8bbd1e8e9c439ab69c 100644 (file)
@@ -2,7 +2,7 @@
 # For AM_FLAG_M3264_PRI
 include $(top_srcdir)/Makefile.flags.am
 
-noinst_SCRIPTS = filter_stderr filter_threadnums
+noinst_SCRIPTS = filter_stderr
 
 EXTRA_DIST = $(noinst_SCRIPTS) \
        bar_bad.vgtest bar_bad.stdout.exp \
index f2b45d7d9a9b64d480d480fc4bb45eb8367a46f3..7c472b68d60ab879c83570ae21f5a49731924bd8 100755 (executable)
@@ -14,8 +14,9 @@ sed "/^Helgrind, a thread error detector/ , /./ d" |
 sed "s/hg_intercepts.c:[0-9]*/hg_intercepts.c:.../g"  |
 
 # Change (eg) "/lib64/libpthread-2.5.so" into "/lib/libpthread..."
-sed "s/lib64/lib/g" | 
-sed "s/libpthread.*so/libpthread\.\.\./g" |
+sed \
+ -e "s/lib64/lib/g" \
+ -e "s/libpthread.*so/libpthread\.\.\./g" |
 
 # Change (eg) "pthread_create@@GLIBC_2.2.5" into "pthread_create@GLIBC"
 #    and (eg) "pthread_create@GLIBC_2.1"    into "pthread_create@GLIBC"
@@ -23,8 +24,17 @@ sed "s/@@*GLIBC_2[0123456789\.]*/@GLIBC_/g" |
 
 # Tidy up in cases where glibc (+ libdl + libpthread + ld) have
 # been built with debugging information, hence source locs are present
-sed "s/(createthread.c:[0-9]*)/(in \/lib\/libpthread...)/g" |
-sed "s/(clone.S:[0-9]*)/(in \/...libc...)/g" |
-sed "s/start_thread (pthread_create.c:[0-9]*)$/start_thread (in \/lib\/libpthread...)/g" |
+sed \
+ -e "s/(createthread.c:[0-9]*)/(in \/lib\/libpthread...)/g" \
+ -e "s/(clone.S:[0-9]*)/(in \/...libc...)/g" \
+ -e "s/start_thread (pthread_create.c:[0-9]*)$/start_thread (in \/lib\/libpthread...)/g" |
+
+# get rid of the numbers in bits of text "Thread #n", "thread #n",
+# "Thread n" and "thread n",
+# as these make some tests more scheduling sensitive -- those where
+# there are multiple threads which play interchangeable roles.
+sed \
+ -e "s/hread #[0-9][0-9]*/hread #x/g" \
+ -e "s/hread [0-9][0-9]*/hread x/g"
 
 $dir/../../tests/filter_test_paths
diff --git a/helgrind/tests/filter_threadnums b/helgrind/tests/filter_threadnums
deleted file mode 100755 (executable)
index 4312d20..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#! /bin/sh
-
-./filter_stderr |
-
-# get rid of the numbers in bits of text "Thread #n" and "thread #n"
-# as these make some tests more scheduling sensitive -- those where
-# there are multiple threads which play interchangeable roles.
-
-sed "s/hread #[0-9]*/hread #x/"
index 2896fa6754ce40628e517f04deb5e1e0e01a7ede..be0ef7bea3c5f2aa3ccac360efadc3c0737f0a08 100644 (file)
@@ -1,4 +1,3 @@
 prog: pth_barrier
 args: 2 1 1
 vgopts: -q
-stderr_filter: ./filter_threadnums
index ebe0fda43394ba934376f697a34926be4bcb0c1f..adbc3a8057f6c88e69a56b66ba5f2ba5e3123f59 100644 (file)
@@ -1,4 +1,3 @@
 prog: pth_barrier
 args: 2 32 1
 vgopts: -q --cmp-race-err-addrs=yes
-stderr_filter: ./filter_threadnums
index bdb9e6d4964fb47cbe3ef9d569a55176f814a176..5798c39057181181e21a323b82e1b800fb67cdf7 100644 (file)
@@ -1,4 +1,3 @@
 prog: pth_barrier
 args: 32 1 1
 vgopts: -q
-stderr_filter: ./filter_threadnums
index 37688a1252fe3f312ddcc13691269e660aeb84ec..d9b9a81be1b2f29baed88b374c526a6c99ef6a6e 100644 (file)
@@ -1,2 +1 @@
 prog: tc21_pthonce
-stderr_filter: ./filter_threadnums