Skip to content

Commit f228a5d

Browse files
committed
tests: Wire LSAN suppressions to meson
1 parent cf9dcd8 commit f228a5d

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/check.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ jobs:
8282
ASAN_OPTIONS: "detect_leaks=1:fast_unwind_on_malloc=0:malloc_context_size=20:symbolize=1"
8383
UBSAN_OPTIONS: "print_stacktrace=1"
8484
run: |
85-
export LSAN_OPTIONS="suppressions=$GITHUB_WORKSPACE/tests/lsan.supp"
8685
timeout --signal=KILL -v ${TESTS_TIMEOUT}m meson test -C ${BUILDDIR} --verbose --timeout-multiplier ${MESON_TEST_TIMEOUT_MULTIPLIER}
8786
8887
- name: Upload test logs

tests/meson.build

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ test_env.set('G_TEST_BUILDDIR', meson.current_build_dir())
88
test_env.prepend('PATH', meson.current_build_dir() / '..' / 'src', separator: ':')
99
test_env.set('FUSERMOUNT', fusermount_program.full_path())
1010

11+
if get_option('b_sanitize').contains('address')
12+
test_env.prepend(
13+
'LSAN_OPTIONS',
14+
'suppressions=' + meson.current_source_dir() / 'lsan.supp',
15+
separator: ':'
16+
)
17+
endif
18+
1119
test_names = [
1220
'test-builder',
1321
'test-builder-deprecated',

0 commit comments

Comments
 (0)