Bug 480126 - Build failure on Raspberry Pi 5 / OS 6.1.0-rpi7-rpi-v8
[valgrind.git] / memcheck / tests / filter_stderr.in
blobb0dc31d1b168ee8d78526c02203c17fcfa9cce13
1 #! /bin/sh
3 dir=`dirname $0`
5 SED=@SED@
7 $dir/../../tests/filter_stderr_basic |
9 # Anonymise addresses
10 $dir/../../tests/filter_addresses |
12 # Remove "Memcheck, ..." line and the following copyright line.
13 $SED "/^Memcheck, a memory error detector/ , /./ d" |
15 # Replace exit_group() with exit(), because you can get either on Linux
16 # depending on the system.
17 perl -p -e "s/param exit_group\(status\)/param exit(status)/" |
19 # Leak check filtering.
20 $SED "s/checked [0-9,]* bytes./checked ... bytes./" |
22 # More leak check filtering. For systems that do extra libc allocations
23 # (eg. Darwin) there may be extra (reachable, and thus not shown) loss
24 # records. So we filter out the loss record numbers.
25 perl -p -e "s/in (?:new )?loss record \d+ of \d+/in loss record ... of .../" |
27 # Filter out glibc debuginfo if installed.
28 perl -p -e "s/\(syscall-template.S:[0-9]*\)/(in \/...libc...)/" |
29 perl -p -e "s/sendmsg \(sendmsg.c:[0-9]*\)/sendmsg (in \/...libc...)/" |
30 perl -p -e "s/\(socket.S:[0-9]*\)/(in \/...libc...)/" |
32 # Newer architectures (aarch64) implement poll by calling ppoll directly.
33 perl -p -e "s/Syscall param ppoll\(ufds/Syscall param poll\(ufds/" |
35 $dir/../../memcheck/tests/filter_memcheck "$@"
37 exit 0