Changes since v1: Make the suppression match libc and
libpthread, multiple versions.
For some reason valgrind thinks the iov array in ustcomm_send_fd
is used uninitialised. Add a suppression so this won't show as
an error.
Signed-off-by: Nils Carlson <nils.carlson@ericsson.com>
Acked-by: David Goulet <david.goulet@polymtl.ca>
--- /dev/null
+{
+ sendmsg-iov-errors-libpthread
+ Memcheck:Param
+ socketcall.sendmsg(msg.msg_iov[i])
+ obj:/lib/libpthread-2.*
+ fun:ustcomm_send_fd
+}
+{
+ sendmsg-iov-errors-libc
+ Memcheck:Param
+ socketcall.sendmsg(msg.msg_iov[i])
+ obj:/lib/libc-2.*
+ fun:ustcomm_send_fd
+}
mkfifo -m 0600 "$pidfilepath"
VALG_OUT=/tmp/ust-testsuite-valg.txt
-valgrind -q ustd --pidfile "$pidfilepath" -o "$TRACE_DIR" >/dev/null 2>"$VALG_OUT" &
+valgrind --suppressions=$TESTDIR/valgrind_suppress.txt -q ustd --pidfile "$pidfilepath" -o "$TRACE_DIR" >/dev/null 2>"$VALG_OUT" &
VALG_PID=$!
USTD_PID="$(<$pidfilepath)"