|
From: <sv...@va...> - 2009-05-31 19:11:23
|
Author: bart
Date: 2009-05-31 20:11:16 +0100 (Sun, 31 May 2009)
New Revision: 10187
Log:
Filter out absolute paths.
Modified:
trunk/drd/tests/annotate_trace_memory.stderr.exp
trunk/drd/tests/filter_stderr
Modified: trunk/drd/tests/annotate_trace_memory.stderr.exp
===================================================================
--- trunk/drd/tests/annotate_trace_memory.stderr.exp 2009-05-31 18:53:54 UTC (rev 10186)
+++ trunk/drd/tests/annotate_trace_memory.stderr.exp 2009-05-31 19:11:16 UTC (rev 10187)
@@ -15,7 +15,7 @@
at 0x........: test01::Parent() (tsan_unittest.cpp:?)
by 0x........: test01::Run() (tsan_unittest.cpp:?)
by 0x........: main (tsan_unittest.cpp:?)
-Allocation context: BSS section of /home/bart/software/valgrind/drd/tests/tsan_unittest
+Allocation context: BSS section of tsan_unittest
load 0x........ size 4 (vg 1 / drd 1 / vc [ 9, 2 ])
at 0x........: test01::Run() (tsan_unittest.cpp:?)
by 0x........: main (tsan_unittest.cpp:?)
Modified: trunk/drd/tests/filter_stderr
===================================================================
--- trunk/drd/tests/filter_stderr 2009-05-31 18:53:54 UTC (rev 10186)
+++ trunk/drd/tests/filter_stderr 2009-05-31 19:11:16 UTC (rev 10187)
@@ -1,6 +1,9 @@
#! /bin/sh
dir=`dirname $0`
+if [ "$dir" = "." ]; then
+ dir="$PWD"
+fi
$dir/../../tests/filter_stderr_basic |
@@ -20,6 +23,7 @@
-e "s/[A-Za-z_]* (in [^ ]*libpthread-[0-9.]*\.so)/(within libpthread-?.?.so)/" \
-e "s:(within /lib[0-9]*/ld-[0-9.]*\.so):(within ld-?.?.so):" \
-e "s/was held during [0-9][0-9]*/was held during .../" \
+-e "s: $dir/: :g" \
-e "s/ (\([a-zA-Z_]*\.c\):[0-9]*)/ (\1:?)/" \
-e "s/ (\([a-zA-Z_]*\.h\):[0-9]*)/ (\1:?)/" \
-e "s/ (\([a-zA-Z_]*\.cpp\):[0-9]*)/ (\1:?)/" |
|