From 5e4f46f9c27e2fbd63bc3d1da4a14fccea532979 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Wed, 19 Oct 2016 13:06:39 +0200 Subject: [PATCH] tests: Make the valgrind based checks default to not checking for leaks Use FLATPAK_TESTS_VALGRIND_LEAKS to check for leaks. We're not currently passing the leak checks, so this helps letting us make valgrind checks useful. --- tests/libtest.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/libtest.sh b/tests/libtest.sh index 6b4414a9..e6649506 100644 --- a/tests/libtest.sh +++ b/tests/libtest.sh @@ -62,6 +62,8 @@ if test -n "${FLATPAK_TESTS_DEBUG:-}"; then fi if test -n "${FLATPAK_TESTS_VALGRIND:-}"; then + CMD_PREFIX="env G_SLICE=always-malloc valgrind -q --leak-check=no --error-exitcode=1 --num-callers=30 --suppressions=${test_srcdir}/flatpak.supp --suppressions=${test_srcdir}/glib.supp" +elif test -n "${FLATPAK_TESTS_VALGRIND_LEAKS:-}"; then CMD_PREFIX="env G_SLICE=always-malloc valgrind -q --leak-check=full --error-exitcode=1 --num-callers=30 --suppressions=${test_srcdir}/flatpak.supp --suppressions=${test_srcdir}/glib.supp" else CMD_PREFIX=""