From babb4c8df37d76f4759bebbd97eeb513d9ca82ad Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 30 Sep 2020 13:02:39 +0200 Subject: [PATCH] build: tests: fix `distcheck` --- tests/local.am | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/local.am b/tests/local.am index 7e1e3d8..fb0bd8b 100644 --- a/tests/local.am +++ b/tests/local.am @@ -4,8 +4,10 @@ TEST_LOG_DRIVER = \ TESTS = +# Leak suppresion file, because Asan screams about Criterion internals otherwise +SUPPRESSION_FILE = $(top_srcdir)/%D%/unit/leak.suppr # Distribute the leak suppression file -EXTRA_DIST += %D%/unit/leak.suppr +EXTRA_DIST += $(SUPPRESSION_FILE) if USING_CRITERION # Add our testsuite to `make check` only if Criterion is detected @@ -18,7 +20,7 @@ TESTS += $(check_PROGRAMS) AM_TESTS_ENVIRONMENT = \ CRITERION_OUTPUTS='tap:-'; \ export CRITERION_OUTPUTS; \ - LSAN_OPTIONS=suppressions=%D%/unit/leak.suppr; \ + LSAN_OPTIONS='suppressions=$(SUPPRESSION_FILE)'; \ export LSAN_OPTIONS; \ $(NULL)