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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 13 deletions

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

View File

@ -19,7 +19,7 @@ categories = ["concurrency", "asynchronous"]
[dependencies]
tokio-executor = { version = "0.1.2", path = "../tokio-executor" }
futures = "0.1.19"
crossbeam-deque = "0.6.0"
crossbeam-deque = "0.6.1"
crossbeam-utils = "0.5.0"
num_cpus = "1.2"
rand = "0.5"