From c479ed0730bbeb25bb9628ec28cdc34f823c23af Mon Sep 17 00:00:00 2001 From: Georg Hopp Date: Sun, 22 Sep 2013 18:57:59 +0100 Subject: [PATCH] add some valgrind suppressions for opanldap and gdbm stuff --- tests/Makefile.am | 6 ++++- tests/suppress/external.supp | 45 ++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 tests/suppress/external.supp diff --git a/tests/Makefile.am b/tests/Makefile.am index f3033e7..141b5ed 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,7 +1,11 @@ ACLOCAL_AMFLAGS = -I m4 AUTOMAKE_OPTIONS = subdir-objects -TESTS_ENVIRONMENT = valgrind --error-exitcode=123 --leak-check=full --quiet +TESTS_ENVIRONMENT = valgrind \ + --error-exitcode=123 \ + --leak-check=full \ + --suppressions=./suppress/external.supp \ + --quiet TESTS = classTest loggerTest socketTest serverTest check_PROGRAMS = classTest loggerTest socketTest serverTest diff --git a/tests/suppress/external.supp b/tests/suppress/external.supp new file mode 100644 index 0000000..c27e3e3 --- /dev/null +++ b/tests/suppress/external.supp @@ -0,0 +1,45 @@ +# +# This is a valgrind suppression file that should be used when using valgrind. +# +# See Misc/README.valgrind for more information. +{ + GDBM open on non existent file + Memcheck:Param + write(buf) + fun:__write_nocancel + fun:_gdbm_full_write + fun:gdbm_open + fun:storageCtor + fun:classNew + fun:main +} + +{ + GDBM close - to be honest I don't know what it complains about. + Memcheck:Param + msync(start) + fun:__msync_nocancel + fun:gdbm_close + fun:storageDtor + fun:classDelete + fun:main +} + +{ + Uninitialized bytes in openldap + Memcheck:Param + sendmsg(mmsg[0].msg_hdr) + fun:sendmmsg + fun:__libc_res_nsend + fun:__libc_res_nquery + fun:__libc_res_nquerydomain + fun:__libc_res_nsearch + fun:_nss_dns_gethostbyname4_r + fun:gaih_inet + fun:getaddrinfo + fun:ldap_connect_to_host + fun:ldap_int_open_connection + fun:ldap_new_connection + fun:ldap_open_defconn +} +