Fix setting LSAN_OPTIONS
Export them in the step running the test, not when configuring.
This commit is contained in:
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@@ -137,8 +137,6 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ${{ matrix.use_asan }} ]; then
|
if [ ${{ matrix.use_asan }} ]; then
|
||||||
export LSAN_OPTIONS=suppressions=$(pwd)/misc/suppressions/lsan
|
|
||||||
|
|
||||||
wxASAN_CFLAGS="-fsanitize=address -fno-omit-frame-pointer"
|
wxASAN_CFLAGS="-fsanitize=address -fno-omit-frame-pointer"
|
||||||
wxASAN_CXXFLAGS=$wxASAN_CFLAGS
|
wxASAN_CXXFLAGS=$wxASAN_CFLAGS
|
||||||
wxASAN_LDFLAGS="-fsanitize=address"
|
wxASAN_LDFLAGS="-fsanitize=address"
|
||||||
@@ -192,6 +190,9 @@ jobs:
|
|||||||
- name: Testing GUI using Xvfb
|
- name: Testing GUI using Xvfb
|
||||||
if: matrix.skip_testing != true && matrix.skip_gui != true && matrix.use_xvfb
|
if: matrix.skip_testing != true && matrix.skip_gui != true && matrix.use_xvfb
|
||||||
run: |
|
run: |
|
||||||
|
if [ ${{ matrix.use_asan }} ]; then
|
||||||
|
export LSAN_OPTIONS=suppressions=$(pwd)/misc/suppressions/lsan
|
||||||
|
fi
|
||||||
pushd tests
|
pushd tests
|
||||||
xvfb-run -a -s '-screen 0 1600x1200x24' ./test_gui
|
xvfb-run -a -s '-screen 0 1600x1200x24' ./test_gui
|
||||||
popd
|
popd
|
||||||
|
Reference in New Issue
Block a user