Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Nov 3, 2020
1 parent 8db64df commit 6e9753d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ci/san.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ cargo clean
RUSTFLAGS="-Z sanitizer=address" \
cargo test --release --target x86_64-unknown-linux-gnu --tests "${@}"

# Run leak sanitizer (when memory leak detection is enabled)
if [[ "$ASAN_OPTIONS" != *"detect_leaks=0"* ]]; then
cargo clean
RUSTFLAGS="-Z sanitizer=leak" \
cargo test --release --target x86_64-unknown-linux-gnu --tests "${@}"
fi

# Run memory sanitizer
cargo clean
RUSTFLAGS="-Z sanitizer=memory" \
Expand Down

0 comments on commit 6e9753d

Please sign in to comment.