@@ -14,25 +14,25 @@ rustup component add rust-src
14
14
# `cfg(crossbeam_sanitize)` with `cfg(sanitize = "..")` and remove
15
15
# `--cfg crossbeam_sanitize`.
16
16
cargo 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 \
19
19
--exclude crossbeam-skiplist --exclude benchmarks -- --test-threads=1
20
20
21
21
# There are memory leaks in crossbeam-skiplist.
22
22
# https://github.com/crossbeam-rs/crossbeam/issues/614
23
23
cargo 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 \
26
26
-p crossbeam-skiplist --test map --test set
27
27
cargo clean
28
28
ASAN_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 \
31
31
-p crossbeam-skiplist --tests
32
32
33
33
cargo clean
34
- RUSTFLAGS=" -Dwarnings -Zsanitizer =address --cfg crossbeam_sanitize" \
35
- cargo run \
34
+ RUSTFLAGS=" ${RUSTFLAGS :- } -Z sanitizer =address --cfg crossbeam_sanitize" \
35
+ cargo run \
36
36
--release \
37
37
--target x86_64-unknown-linux-gnu \
38
38
--features nightly \
@@ -41,11 +41,11 @@ cargo run \
41
41
42
42
# Run memory sanitizer
43
43
cargo 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
46
46
47
47
# Run thread sanitizer
48
48
cargo clean
49
49
TSAN_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