From fa90e42a38c817e11f16c012cfc243e4b90a773b Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 8 Jul 2020 22:19:32 -0400 Subject: [PATCH] ci: Set LSAN_OPTIONS for tests When running the testsuite with the address sanitizer, many of our dependencies cause it to report cause it to report memory leaks, causing tests to fail. Therefore, point the leak sanitizer at a list of suppressions. The list is kept in the lsan.supp file in git. --- .gitlab-ci/run-tests.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab-ci/run-tests.sh b/.gitlab-ci/run-tests.sh index e1a0d7f399..952b2bdd81 100755 --- a/.gitlab-ci/run-tests.sh +++ b/.gitlab-ci/run-tests.sh @@ -7,6 +7,9 @@ srcdir=$( pwd ) builddir=$1 backend=$2 +# Ignore memory leaks lower in dependencies +export LSAN_OPTIONS=suppressions=$srcdir/lsan.supp + case "${backend}" in x11) xvfb-run -a -s "-screen 0 1024x768x24" \