mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-07-21 10:16:14 +00:00
ci: set some ASan and UBSan options
This is needed in part for UBSan to make tests actually fail on encountering undefined behaviour.
This commit is contained in:
parent
fd969dab28
commit
c47df433f7
|
@ -343,7 +343,9 @@ build_with_asan_ubsan:
|
|||
- echo "Building with ASan and UBSan"
|
||||
- meson setup "$BUILD_DIR" --prefix="$PREFIX" -D debug=true -D optimization=g -D b_sanitize=address,undefined -D session-managers=[]
|
||||
- meson compile -C "$BUILD_DIR" $COMPILE_ARGS
|
||||
- meson test -C "$BUILD_DIR" --no-rebuild
|
||||
- env UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 \
|
||||
ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 \
|
||||
meson test -C "$BUILD_DIR" --no-rebuild
|
||||
|
||||
# A release build with NDEBUG, all options on auto() but tests explicitly
|
||||
# enabled. This should show issues with tests failing due to different
|
||||
|
|
Loading…
Reference in a new issue