tests: Suppress valgrind error reports from glibc timer_create() function.
authorBen Pfaff <blp@nicira.com>
Wed, 28 Mar 2012 00:20:48 +0000 (17:20 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 28 Mar 2012 21:55:21 +0000 (14:55 -0700)
valgrind reports a memory leak and a parameter error in glibc's
timer_create() in almost every program execution.  I don't know a way to
avoid them.

Signed-off-by: Ben Pfaff <blp@nicira.com>
tests/automake.mk
tests/glibc.supp [new file with mode: 0644]

index 62f0c496bb72d5aaeaff7a5d8c350f6741f6ac9a..784ae9cefff74c6e75d8edd44683f9233b78c8e8 100644 (file)
@@ -189,8 +189,9 @@ CLEANFILES += $(valgrind_wrappers)
 EXTRA_DIST += tests/valgrind-wrapper.in
 
 VALGRIND = valgrind --log-file=valgrind.%p --leak-check=full \
+       --suppressions=$(abs_top_srcdir)/tests/glibc.supp \
        --suppressions=$(abs_top_srcdir)/tests/openssl.supp --num-callers=20
-EXTRA_DIST += tests/openssl.supp
+EXTRA_DIST += tests/glibc.supp tests/openssl.supp
 check-valgrind: all tests/atconfig tests/atlocal $(TESTSUITE) $(valgrind_wrappers)
        $(SHELL) '$(TESTSUITE)' -C tests CHECK_VALGRIND=true VALGRIND='$(VALGRIND)' AUTOTEST_PATH='tests/valgrind:$(AUTOTEST_PATH)' -d $(TESTSUITEFLAGS)
        @echo
diff --git a/tests/glibc.supp b/tests/glibc.supp
new file mode 100644 (file)
index 0000000..52d17bc
--- /dev/null
@@ -0,0 +1,16 @@
+# suppress what appear to unavoidable error reports from glibc
+
+{
+   timer_create
+   Memcheck:Leak
+   fun:malloc
+   fun:timer_create
+}
+
+{
+   timer_create
+   Memcheck:Param
+   timer_create(evp)
+   fun:timer_create
+}
+