]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Added script filter_stderr_and_thread_no.
authorBart Van Assche <bvanassche@acm.org>
Tue, 10 Mar 2009 09:19:26 +0000 (09:19 +0000)
committerBart Van Assche <bvanassche@acm.org>
Tue, 10 Mar 2009 09:19:26 +0000 (09:19 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9336

drd/tests/Makefile.am
drd/tests/filter_stderr_and_thread_no [new file with mode: 0755]

index 13e610f06c9d104f028bd312bef1d24fc046cc4a..5ba66ec300dfaace8e7deb2d54041ce47df685b2 100644 (file)
@@ -5,10 +5,11 @@ SUBDIRS = .
 
 DIST_SUBDIRS = .
 
-noinst_SCRIPTS =               \
-       filter_error_summary    \
-       filter_stderr           \
-       run_openmp_test         \
+noinst_SCRIPTS =                   \
+       filter_error_summary        \
+       filter_stderr               \
+       filter_stderr_and_thread_no \
+       run_openmp_test             \
        supported_libpthread
 
 EXTRA_DIST =                                        \
diff --git a/drd/tests/filter_stderr_and_thread_no b/drd/tests/filter_stderr_and_thread_no
new file mode 100755 (executable)
index 0000000..6d1997c
--- /dev/null
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+./filter_stderr |
+
+# Get rid of the numbers as these make some tests more scheduling sensitive
+# -- those where there are multiple threads which play interchangeable roles.
+grep -v "^Thread [0-9][0-9]*:$" |
+sed -e "s:hread [0-9][0-9]*/[0-9][0-9]*:hread x/x:g"