git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11940
dist_noinst_SCRIPTS = \
compare_error_count_with \
+ filter_error_count \
filter_error_summary \
filter_stderr \
filter_stderr_and_thread_no \
--- /dev/null
+#!/bin/sh
+
+# Filter the error output of Valgrind such that only the line with the error
+# summary is kept. Bart Van Assche, February 26, 2008.
+
+sed -n \
+ -e 's/^.*\(ERROR SUMMARY.*\) ([^()]*)$/\1/' \
+ -e 's/^\(ERROR SUMMARY: [0-9]* errors\).*$/\1/' \
+ -e '/ERROR SUMMARY/p'
-ERROR SUMMARY: 32 errors from 1 contexts
+ERROR SUMMARY: 32 errors
prereq: test -e pth_barrier && ./supported_libpthread
prog: pth_barrier
args: 2 32 1
-stderr_filter: filter_error_summary
+stderr_filter: filter_error_count
-ERROR SUMMARY: 31 errors from 1 contexts
+ERROR SUMMARY: 31 errors
prereq: test -e pth_barrier && ./supported_libpthread
prog: pth_barrier
args: 32 1 1
-stderr_filter: filter_error_summary
+stderr_filter: filter_error_count