]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Adding new filter to memcheck/tests/filter_stderr
authorPetar Jovanovic <mips32r2@gmail.com>
Fri, 27 Jan 2017 18:20:50 +0000 (18:20 +0000)
committerPetar Jovanovic <mips32r2@gmail.com>
Fri, 27 Jan 2017 18:20:50 +0000 (18:20 +0000)
This should fix issue with sendmsg test and glibc 2.22.

Glibc 2.22 introduced sysdeps/unix/sysv/linux/sendmsg.c that has
__libc_sendmsg function implementation (in comparison to earlier
implementation in syscall-template.S).
So, test suite needs to filter out this case, otherwise we get test
diffs such as:

 Syscall param sendmsg(msg) points to uninitialised byte(s)
-   at 0x........: sendmsg (in /...libc...)
+   at 0x........: sendmsg (sendmsg.c:28)

which are false positives.

This fixes memcheck/tests/sendmsg (stderr) on platforms with 2.22+ glibc.

Patch by Aleksandra Karadzic.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16213

memcheck/tests/filter_stderr

index b55f24a693490fbb70ffaf187f710124559adb8f..c6f6cd439fcadea3cbf71ca1e22dc35a81c8d8fe 100755 (executable)
@@ -24,6 +24,7 @@ perl -p -e "s/in loss record \d+ of \d+/in loss record ... of .../" |
 
 # Filter out glibc debuginfo if installed.
 perl -p -e "s/\(syscall-template.S:[0-9]*\)/(in \/...libc...)/" |
+perl -p -e "s/sendmsg \(sendmsg.c:[0-9]*\)/sendmsg (in \/...libc...)/" |
 perl -p -e "s/\(socket.S:[0-9]*\)/(in \/...libc...)/" |
 
 # Newer architectures (aarch64) implement poll by calling ppoll directly.