labwc/scripts/run-with-asan.sh
Johan Malm d2a864dfe7 Add lsan.supp
...so suppress errors from ASAN with EGL renderer.

Also add a script to simplify running with sanitizer and this suppression
file.

Related-to: #2331
2024-11-26 21:29:09 +00:00

9 lines
265 B
Bash
Executable file

#!/bin/sh
: ${BUILD_DIR="build"}
[ -d "${BUILD_DIR}" ] || meson setup "${BUILD_DIR}"
meson configure -Db_sanitize=address,undefined "${BUILD_DIR}"
ninja -C "${BUILD_DIR}"
LSAN_OPTIONS=suppressions=scripts/asan_leak_suppressions "${BUILD_DIR}/labwc" -d 2>log.txt