| #! /bin/sh |
| |
| dir=`dirname $0` |
| |
| $dir/../../tests/filter_stderr_basic | |
| |
| # Remove "drd, ..." line and the following copyright line. |
| # Remove line numbers referring to drd's source code. |
| # Remove libpthread's version number. |
| # Remove line numbers from stack traces. |
| sed \ |
| -e "/^drd, a thread error detector\.$/d" \ |
| -e "s/^Allocation context: stack of thread \([0-9]*\), offset -[0-9]*$/Allocation context: stack of thread \1, offset .../" \ |
| -e "/^warning: evaluate_Dwarf3_Expr: unhandled DW_OP_.*/d" \ |
| -e "s/, in frame #[0-9]* of thread /, in frame #? of thread /" \ |
| -e "s/(tc20_verifywrap.c:261)/(tc20_verifywrap.c:262)/" \ |
| -e "/^NOTE: This is an Experimental-Class Valgrind Tool.$/d" \ |
| -e "/^Copyright (C) 2006-200., and GNU GPL'd, by Bart Van Assche.$/d" \ |
| -e "s/\(pthread_create.c:[0-9]*\)/in libpthread-?.?.so/" \ |
| -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/ (\([a-zA-Z_]*\.c\):[0-9]*)/ (\1:?)/" \ |
| -e "s/ (\([a-zA-Z_]*\.cpp\):[0-9]*)/ (\1:?)/" | |
| |
| # Anonymise addresses |
| $dir/../../tests/filter_addresses |
| |