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.
tingping/wmclass
Alexander Larsson 2016-10-19 13:06:39 +02:00
parent 68a0e7f8f5
commit 5e4f46f9c2
1 changed files with 2 additions and 0 deletions

View File

@ -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=""