From 367930f57d36754858de83564ee45438b0ece8a1 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 31 Jan 2021 00:14:28 +0100 Subject: [PATCH] Fix setting LSAN_OPTIONS Export them in the step running the test, not when configuring. --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 66bc2ec0a8..60c15d0fe1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -137,8 +137,6 @@ jobs: fi if [ ${{ matrix.use_asan }} ]; then - export LSAN_OPTIONS=suppressions=$(pwd)/misc/suppressions/lsan - wxASAN_CFLAGS="-fsanitize=address -fno-omit-frame-pointer" wxASAN_CXXFLAGS=$wxASAN_CFLAGS wxASAN_LDFLAGS="-fsanitize=address" @@ -192,6 +190,9 @@ jobs: - name: Testing GUI using Xvfb if: matrix.skip_testing != true && matrix.skip_gui != true && matrix.use_xvfb run: | + if [ ${{ matrix.use_asan }} ]; then + export LSAN_OPTIONS=suppressions=$(pwd)/misc/suppressions/lsan + fi pushd tests xvfb-run -a -s '-screen 0 1600x1200x24' ./test_gui popd