From 1dad7aa3d1e8a5f79879c19f4b50f244e1eee269 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Tue, 13 Dec 2022 01:00:50 +0200 Subject: [PATCH] build: improve valgrind-testing --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6af70609..6ea1b81b 100644 --- a/Makefile +++ b/Makefile @@ -70,9 +70,12 @@ clean: test-verbose-if-fail: all @cd $(BUILDDIR); $(MESON) test || $(MESON) test --verbose +vg_opts:=--enable-debuginfod=no --leak-check=full --error-exitcode=1 +test-valgrind: export G_SLICE=always-malloc +test-valgrind: export G_DEBUG=gc-friendly test-valgrind: $(BUILDDIR) - @cd $(BUILDDIR); $(MESON) test \ - --wrap='valgrind --leak-check=full --error-exitcode=1' \ + @cd $(BUILDDIR); $(MESON) test \ + --wrap="valgrind $(vg_opts)" \ --timeout-multiplier 100 # we do _not_ pass helgrind; but this seems to be a false-alarm