[gtk/asan-ci: 3/4] ci: Set ASAN_OPTIONS for tests



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

    ci: Set ASAN_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, set ASAN_OPTIONS=detect_leaks=0, to
    use asan without the leak detection.

 .gitlab-ci/run-tests.sh | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/.gitlab-ci/run-tests.sh b/.gitlab-ci/run-tests.sh
index e1a0d7f399..dcb91ec997 100755
--- a/.gitlab-ci/run-tests.sh
+++ b/.gitlab-ci/run-tests.sh
@@ -7,6 +7,8 @@ srcdir=$( pwd )
 builddir=$1
 backend=$2
 
+export ASAN_OPTIONS=detect_leaks=0
+
 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]