Skip to content

Commit

Permalink
Added AddressSanitizer to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Jan 10, 2018
1 parent 8cd1188 commit 25e2ab8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ci_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ CC=clang meson -Dwith_valgrind=true build-clang
meson -Dwith_threads=false -Dwith_valgrind=true build-no-threads
meson -Dwith_threads=false -Dwith_miniz=false -Dwith_linenoise=false build-small
meson -Db_coverage=true -Doptimistic_alloc=false build-coverage
CFLAGS="-fsanitize=address -fno-omit-frame-pointer -g" LDFLAGS=-fsanitize=address meson build-asan

# build with GCC, clang, with GCC while thread support is disabled and a small build with all optional features off
for i in build-gcc build-clang build-no-threads
Expand All @@ -48,6 +49,9 @@ do
meson test -C $i --no-rebuild --print-errorlogs --suite b6b:threaded --repeat 5
done

# run all tests except extremely slow ones with AddressSanitizer
meson test -C build-asan --print-errorlogs --no-suite b6b:intensive -t 2

# this is required to work around missing suppressions in glibc's symbol lookup
export LD_BIND_NOW=1

Expand Down

0 comments on commit 25e2ab8

Please sign in to comment.