From fdf1af2e4cdcf21a6ac975f536496a114191f0ab Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Tue, 5 Jan 2021 13:52:49 +0900 Subject: [PATCH] wip --- ci/san.sh | 6 +++--- ci/test.sh | 2 +- ci/tsan | 3 --- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/ci/san.sh b/ci/san.sh index fbe6b9429..a25ee063b 100755 --- a/ci/san.sh +++ b/ci/san.sh @@ -17,7 +17,7 @@ export ASAN_OPTIONS="detect_leaks=0" # `cfg(crossbeam_sanitize)` with `cfg(sanitize = "..")` and remove # `--cfg crossbeam_sanitize`. RUSTFLAGS="-D warnings -Z sanitizer=address --cfg crossbeam_sanitize" \ -cargo test --all --release --target x86_64-unknown-linux-gnu --tests --exclude benchmarks +cargo test --all --release --target x86_64-unknown-linux-gnu --tests --exclude benchmarks -- --test-threads=1 RUSTFLAGS="-D warnings -Z sanitizer=address --cfg crossbeam_sanitize" \ cargo run \ @@ -30,10 +30,10 @@ cargo run \ # Run memory sanitizer cargo clean RUSTFLAGS="-D warnings -Z sanitizer=memory --cfg crossbeam_sanitize" \ -cargo test -Zbuild-std --all --release --target x86_64-unknown-linux-gnu --tests --exclude benchmarks +cargo test -Zbuild-std --all --release --target x86_64-unknown-linux-gnu --tests --exclude benchmarks -- --test-threads=1 # Run thread sanitizer cargo clean export TSAN_OPTIONS="suppressions=$(pwd)/ci/tsan" RUSTFLAGS="-D warnings -Z sanitizer=thread --cfg crossbeam_sanitize" \ -cargo test -Zbuild-std --all --release --target x86_64-unknown-linux-gnu --tests --exclude benchmarks +cargo test -Zbuild-std --all --release --target x86_64-unknown-linux-gnu --tests --exclude benchmarks -- --test-threads=1 diff --git a/ci/test.sh b/ci/test.sh index 7fc76548e..c0c633d30 100755 --- a/ci/test.sh +++ b/ci/test.sh @@ -8,7 +8,7 @@ export RUSTFLAGS="-D warnings" if [[ -n "$TARGET" ]]; then # If TARGET is specified, use cross for testing. cargo install cross - cross test --all --target "$TARGET" --exclude benchmarks + cross test --all --target "$TARGET" --exclude benchmarks -- --test-threads=1 # For now, the non-host target only runs tests. exit 0 diff --git a/ci/tsan b/ci/tsan index 2b0c2aded..62c5d67f3 100644 --- a/ci/tsan +++ b/ci/tsan @@ -8,6 +8,3 @@ race:crossbeam_epoch # forgotten and the steal operation is then retried. race:crossbeam_deque*push race:crossbeam_deque*steal - -# FIXME: ??? -race:crossbeam_utils::atomic::atomic_cell::AtomicCell::compare_exchange