Code

tests: Suppress valgrind errors found in gcov_exit.
authorSebastian Harl <sh@tokkee.org>
Mon, 19 May 2014 07:18:28 +0000 (09:18 +0200)
committerSebastian Harl <sh@tokkee.org>
Mon, 19 May 2014 07:18:28 +0000 (09:18 +0200)
They don't matter for us.

t/testwrapper.sh
t/valgrind.suppress [new file with mode: 0644]

index ccdbc6d6015ef44e7050f9feadde83749196dd2d..06592723cf16414c40a5fc8ad851d2ffcca63dd0 100755 (executable)
@@ -9,6 +9,7 @@ set -e
 MEMCHECK="valgrind --quiet --tool=memcheck --error-exitcode=1"
 MEMCHECK="$MEMCHECK --trace-children=yes"
 MEMCHECK="$MEMCHECK --leak-check=full"
+MEMCHECK="$MEMCHECK --suppressions=$( dirname "$0" )/valgrind.suppress"
 
 case "$1" in
        *unit/*)
diff --git a/t/valgrind.suppress b/t/valgrind.suppress
new file mode 100644 (file)
index 0000000..2861b59
--- /dev/null
@@ -0,0 +1,9 @@
+{
+   <insert_a_suppression_name_here>
+   Memcheck:Cond
+   fun:gcov_exit
+   fun:__run_exit_handlers
+   fun:exit
+   fun:srunner_run_all
+   fun:main
+}