test: disable LSAN for sandbox tests

since they do not play well with seccomp and landlock
This commit is contained in:
CismonX 2025-03-05 13:36:38 +08:00
parent 29be925c92
commit 1836692719
No known key found for this signature in database
GPG key ID: 3094873E29A482FB

View file

@ -17,6 +17,9 @@ ATX_CHECK_LIB([
printf '%s\n\n%s\n' '#!/bin/sh' 'exit 2' > $tmpdir/false.sh printf '%s\n\n%s\n' '#!/bin/sh' 'exit 2' > $tmpdir/false.sh
chmod +x $tmpdir/false.sh chmod +x $tmpdir/false.sh
# LSAN does not play well with sandbox...
export ASAN_OPTIONS="$ASAN_OPTIONS:detect_leaks=0"
# Check both read-only and read/write mode. # Check both read-only and read/write mode.
ATX_RUN([ ATX_RUN([
check-util-lib sandbox -r -d $tmpdir check-util-lib sandbox -r -d $tmpdir