build: improve valgrind-testing

This commit is contained in:
Dirk-Jan C. Binnema 2022-12-13 01:00:50 +02:00
parent f7fe4fea21
commit 1dad7aa3d1
1 changed files with 5 additions and 2 deletions

View File

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