[gtk/asan-ci: 3/5] ci: Set LSAN_OPTIONS for tests



commit 6dbf6ebaea91116aac6aeb7df8988ebd5c3c1ce5
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Jul 8 22:19:32 2020 -0400

    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" \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]