tests/vg_regtest: Always evaluate prerequisite expressions with sh
[valgrind.git] / memcheck / tests / filter_stderr
blobb55f24a693490fbb70ffaf187f710124559adb8f
1 #! /bin/sh
3 dir=`dirname $0`
5 $dir/../../tests/filter_stderr_basic |
7 # Anonymise addresses
8 $dir/../../tests/filter_addresses |
10 # Remove "Memcheck, ..." line and the following copyright line.
11 sed "/^Memcheck, a memory error detector/ , /./ d" |
13 # Replace exit_group() with exit(), because you can get either on Linux
14 # depending on the system.
15 perl -p -e "s/param exit_group\(status\)/param exit(status)/" |
17 # Leak check filtering.
18 sed "s/checked [0-9,]* bytes./checked ... bytes./" |
20 # More leak check filtering. For systems that do extra libc allocations
21 # (eg. Darwin) there may be extra (reachable, and thus not shown) loss
22 # records. So we filter out the loss record numbers.
23 perl -p -e "s/in loss record \d+ of \d+/in loss record ... of .../" |
25 # Filter out glibc debuginfo if installed.
26 perl -p -e "s/\(syscall-template.S:[0-9]*\)/(in \/...libc...)/" |
27 perl -p -e "s/\(socket.S:[0-9]*\)/(in \/...libc...)/" |
29 # Newer architectures (aarch64) implement poll by calling ppoll directly.
30 perl -p -e "s/Syscall param ppoll\(ufds/Syscall param poll\(ufds/" |
32 $dir/../../memcheck/tests/filter_memcheck "$@"
34 exit 0