Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jan 5, 2021
1 parent 6353932 commit fdf1af2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
6 changes: 3 additions & 3 deletions ci/san.sh
Expand Up @@ -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 \
Expand All @@ -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
2 changes: 1 addition & 1 deletion ci/test.sh
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions ci/tsan
Expand Up @@ -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<T>::compare_exchange

0 comments on commit fdf1af2

Please sign in to comment.