git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12200
dist_noinst_SCRIPTS = \
compare_error_count_with \
+ filter_annotate_barrier_xml \
filter_error_count \
filter_error_summary \
filter_stderr \
<ip>0x........</ip>
<obj>...</obj>
<fn>start_thread</fn>
- <dir>...</dir>
- <file>pthread_create.c</file>
- <line>...</line>
</frame>
</stack>
<auxwhat>Address 0x........ is at offset 0 from 0x.........</auxwhat>
prereq: test -e annotate_barrier && ./supported_libpthread
vgopts: --read-var-info=yes --check-stack-var=yes --show-confl-seg=no --num-callers=3 --xml=yes --xml-fd=2
prog: annotate_barrier 2 1 1
-stderr_filter: ../../memcheck/tests/filter_xml
+stderr_filter: filter_annotate_barrier_xml
--- /dev/null
+#!/bin/sh
+
+# Remove the three lines after "<fn>start_thread</fn>" if these start with
+# "<dir>...</dir>" since these last three lines are not generated on all
+# platforms.
+../../memcheck/tests/filter_xml |
+awk '{
+ if ($0 == " <fn>start_thread</fn>") {
+ line1 = $0
+ getline
+ if ($0 == " <dir>...</dir>") {
+ line2 = $0
+ getline
+ if ($0 == " <file>pthread_create.c</file>") {
+ line3 = $0
+ getline
+ if ($0 == " <line>...</line>") {
+ $0 = line1
+ } else {
+ print line1
+ print line2
+ print line3
+ }
+ } else {
+ print line1
+ print line2
+ }
+ } else {
+ print line1
+ }
+ }
+ print
+ }'