From 25c2643acb01a296a647c5a3a71f8ee1e21fb6a9 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Mon, 19 May 2014 09:18:28 +0200 Subject: [PATCH] tests: Suppress valgrind errors found in gcov_exit. They don't matter for us. --- t/testwrapper.sh | 1 + t/valgrind.suppress | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 t/valgrind.suppress diff --git a/t/testwrapper.sh b/t/testwrapper.sh index ccdbc6d..0659272 100755 --- a/t/testwrapper.sh +++ b/t/testwrapper.sh @@ -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 index 0000000..2861b59 --- /dev/null +++ b/t/valgrind.suppress @@ -0,0 +1,9 @@ +{ + + Memcheck:Cond + fun:gcov_exit + fun:__run_exit_handlers + fun:exit + fun:srunner_run_all + fun:main +} -- 2.30.2