aboutsummaryrefslogtreecommitdiff
path: root/tests/filter_libc
diff options
context:
space:
mode:
authorsewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9>2005-03-10 23:23:45 +0000
committersewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9>2005-03-10 23:23:45 +0000
commitcbdddcfb32883a37e873907602d34bac523e3ead (patch)
treeec277b9543f35ac3fd4aeb8dd97252358b39d2ee /tests/filter_libc
parente78fd58e7674424ca9002a34ecde86edb74cad15 (diff)
downloadvalgrind-cbdddcfb32883a37e873907602d34bac523e3ead.tar.gz
Add new files resulting from merging in the 2.4.0 line. Many of these
seem to be simply duplication of the x86 instruction set tests into the addrcheck and helgrind trees. I'm not sure what this duplication achieves. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3264 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'tests/filter_libc')
-rwxr-xr-xtests/filter_libc26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/filter_libc b/tests/filter_libc
new file mode 100755
index 000000000..bcb83091a
--- /dev/null
+++ b/tests/filter_libc
@@ -0,0 +1,26 @@
+#! /usr/bin/perl -w
+
+use strict;
+
+my @libc_symbols = qw(__libc_start_main accept execve fcntl
+ getsockname poll readv recvmsg
+ socket socketpair syscall writev);
+
+my $libc_symbols = join("|", @libc_symbols);
+
+while (<>)
+{
+ s/ __getsockname / getsockname /;
+ s/ __sigaction / sigaction /;
+ s/ __GI___/ __/;
+ s/ __([a-z]*)_nocancel / $1 /;
+
+ s/\(in \/.*libc.*\)$/(in \/...libc...)/;
+ s/\(within \/.*libc.*\)$/(within \/...libc...)/;
+
+ s/($libc_symbols) \(.+\.[cS]:\d+\)$/$1 (in \/...libc...)/;
+
+ print;
+}
+
+exit 0;