Enable sanitizer tests for tokio-threadpool (#537)

Closes #536.
This commit is contained in:
Stjepan Glavina
2018-08-10 19:13:51 +02:00
committed by GitHub
parent d91c775f36
commit 989262fe6e
2 changed files with 10 additions and 13 deletions
+9 -12
View File
@@ -46,18 +46,15 @@ script:
RUSTFLAGS="-Z sanitizer=thread" \
cargo test -p tokio-timer --test hammer --target x86_64-unknown-linux-gnu
# TODO: Uncomment the sanitizer tests once the fence in steal issue is
# resolved: https://github.com/tokio-rs/tokio/issues/329
#
# # === tokio-threadpool ====
#
# # Run address sanitizer
# RUSTFLAGS="-Z sanitizer=address" \
# cargo test -p tokio-threadpool --tests
#
# # Run thread sanitizer
# RUSTFLAGS="-Z sanitizer=thread" \
# cargo test -p tokio-threadpool --tests
# === tokio-threadpool ====
# Run address sanitizer
RUSTFLAGS="-Z sanitizer=address" \
cargo test -p tokio-threadpool --tests --target x86_64-unknown-linux-gnu
# Run thread sanitizer
RUSTFLAGS="-Z sanitizer=thread" \
cargo test -p tokio-threadpool --tests --target x86_64-unknown-linux-gnu
fi
- |
set -e