blob: c6f6cd439fcadea3cbf71ca1e22dc35a81c8d8fe [file] [log] [blame]
njn25e49d8e72002-09-23 09:36:25 +00001#! /bin/sh
2
njn25e49d8e72002-09-23 09:36:25 +00003dir=`dirname $0`
4
njn25cac76cb2002-09-23 11:21:57 +00005$dir/../../tests/filter_stderr_basic |
njn25e49d8e72002-09-23 09:36:25 +00006
7# Anonymise addresses
njn25cac76cb2002-09-23 11:21:57 +00008$dir/../../tests/filter_addresses |
njn25e49d8e72002-09-23 09:36:25 +00009
njnb9c427c2004-12-01 14:14:42 +000010# Remove "Memcheck, ..." line and the following copyright line.
11sed "/^Memcheck, a memory error detector/ , /./ d" |
12
njnacdcf542009-03-16 00:59:17 +000013# Replace exit_group() with exit(), because you can get either on Linux
14# depending on the system.
15perl -p -e "s/param exit_group\(status\)/param exit(status)/" |
16
njn8df80b22009-03-02 05:11:06 +000017# Leak check filtering.
18sed "s/checked [0-9,]* bytes./checked ... bytes./" |
19
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.
florian3dfe9792011-10-03 23:39:54 +000023perl -p -e "s/in loss record \d+ of \d+/in loss record ... of .../" |
njn870f1702009-02-16 05:11:49 +000024
tomfc75e5e2013-02-28 12:50:55 +000025# Filter out glibc debuginfo if installed.
26perl -p -e "s/\(syscall-template.S:[0-9]*\)/(in \/...libc...)/" |
Elliott Hughesed398002017-06-21 14:41:24 -070027perl -p -e "s/sendmsg \(sendmsg.c:[0-9]*\)/sendmsg (in \/...libc...)/" |
mjw97461472014-08-26 19:41:51 +000028perl -p -e "s/\(socket.S:[0-9]*\)/(in \/...libc...)/" |
tomfc75e5e2013-02-28 12:50:55 +000029
mjwb444fbc2014-08-26 22:15:58 +000030# Newer architectures (aarch64) implement poll by calling ppoll directly.
31perl -p -e "s/Syscall param ppoll\(ufds/Syscall param poll\(ufds/" |
32
florian3dfe9792011-10-03 23:39:54 +000033$dir/../../memcheck/tests/filter_memcheck "$@"
34
35exit 0