@@ -14,25 +14,25 @@ rustup component add rust-src
1414# `cfg(crossbeam_sanitize)` with `cfg(sanitize = "..")` and remove
1515# `--cfg crossbeam_sanitize`.
1616cargo clean
17- RUSTFLAGS=" -Dwarnings -Zsanitizer =address --cfg crossbeam_sanitize" \
18- cargo test --all --release --target x86_64-unknown-linux-gnu --tests \
17+ RUSTFLAGS=" ${RUSTFLAGS :- } -Z sanitizer =address --cfg crossbeam_sanitize" \
18+ cargo test --all --release --target x86_64-unknown-linux-gnu --tests \
1919 --exclude crossbeam-skiplist --exclude benchmarks -- --test-threads=1
2020
2121# There are memory leaks in crossbeam-skiplist.
2222# https://github.com/crossbeam-rs/crossbeam/issues/614
2323cargo clean
24- RUSTFLAGS=" -Dwarnings -Zsanitizer =address --cfg crossbeam_sanitize" \
25- cargo test --release --target x86_64-unknown-linux-gnu \
24+ RUSTFLAGS=" ${RUSTFLAGS :- } -Z sanitizer =address --cfg crossbeam_sanitize" \
25+ cargo test --release --target x86_64-unknown-linux-gnu \
2626 -p crossbeam-skiplist --test map --test set
2727cargo clean
2828ASAN_OPTIONS=" detect_leaks=0" \
29- RUSTFLAGS=" -Dwarnings -Zsanitizer =address --cfg crossbeam_sanitize" \
30- cargo test --release --target x86_64-unknown-linux-gnu \
29+ RUSTFLAGS=" ${RUSTFLAGS :- } -Z sanitizer =address --cfg crossbeam_sanitize" \
30+ cargo test --release --target x86_64-unknown-linux-gnu \
3131 -p crossbeam-skiplist --tests
3232
3333cargo clean
34- RUSTFLAGS=" -Dwarnings -Zsanitizer =address --cfg crossbeam_sanitize" \
35- cargo run \
34+ RUSTFLAGS=" ${RUSTFLAGS :- } -Z sanitizer =address --cfg crossbeam_sanitize" \
35+ cargo run \
3636 --release \
3737 --target x86_64-unknown-linux-gnu \
3838 --features nightly \
@@ -41,11 +41,11 @@ cargo run \
4141
4242# Run memory sanitizer
4343cargo clean
44- RUSTFLAGS=" -Dwarnings -Zsanitizer =memory --cfg crossbeam_sanitize" \
45- cargo test -Zbuild -std --all --release --target x86_64-unknown-linux-gnu --tests --exclude benchmarks -- --test-threads=1
44+ RUSTFLAGS=" ${RUSTFLAGS :- } -Z sanitizer =memory --cfg crossbeam_sanitize" \
45+ cargo test -Z build -std --all --release --target x86_64-unknown-linux-gnu --tests --exclude benchmarks -- --test-threads=1
4646
4747# Run thread sanitizer
4848cargo clean
4949TSAN_OPTIONS=" suppressions=$( pwd) /ci/tsan" \
50- RUSTFLAGS=" -Dwarnings -Zsanitizer =thread --cfg crossbeam_sanitize" \
51- cargo test -Zbuild -std --all --release --target x86_64-unknown-linux-gnu --tests --exclude benchmarks -- --test-threads=1
50+ RUSTFLAGS=" ${RUSTFLAGS :- } -Z sanitizer =thread --cfg crossbeam_sanitize" \
51+ cargo test -Z build -std --all --release --target x86_64-unknown-linux-gnu --tests --exclude benchmarks -- --test-threads=1
0 commit comments