mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
CI: add address sanitizer to Debian runtime tests
This commit is contained in:
parent
918e64bb0b
commit
af3054394e
3 changed files with 35 additions and 6 deletions
1
scripts/asan_leak_suppressions
Normal file
1
scripts/asan_leak_suppressions
Normal file
|
|
@ -0,0 +1 @@
|
|||
leak:libfontconfig.so
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue