mirror of
https://github.com/flatpak/flatpak.git
synced 2026-10-21 07:05:25 -04:00
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.
This commit is contained in:
1 parent
68a0e7f8f5
commit
5e4f46f9c2
1 file changed
+2
@@ -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=""
|
||||
|
||||
Reference in new issue
Block a user