CI: add address sanitizer to Debian runtime tests

This commit is contained in:
Consolatis 2024-11-26 03:08:07 +01:00
parent 918e64bb0b
commit af3054394e
3 changed files with 35 additions and 6 deletions

View file

@ -0,0 +1 @@
leak:libfontconfig.so

View file

@ -1,6 +1,7 @@
#!/usr/bin/env bash
: ${LABWC_RUNS:=1}
: ${LABWC_LEAK_TEST:=0}
if ! test -x "$1/labwc"; then
echo "$1/labwc not found"
@ -44,6 +45,11 @@ gdb_run() {
echo "Running with LABWC_RUNS=$LABWC_RUNS"
if test "$LABWC_LEAK_TEST" != "0"; then
LSAN_OPTIONS=suppressions=scripts/asan_leak_suppressions "${args[@]}"
exit $?
fi
ret=0
for((i=1; i<=LABWC_RUNS; i++)); do
printf "Starting run %2s\n" $i