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" \ RUSTFLAGS="-Z sanitizer=thread" \
cargo test -p tokio-timer --test hammer --target x86_64-unknown-linux-gnu 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 # === tokio-threadpool ====
# resolved: https://github.com/tokio-rs/tokio/issues/329
# # Run address sanitizer
# # === tokio-threadpool ==== RUSTFLAGS="-Z sanitizer=address" \
# cargo test -p tokio-threadpool --tests --target x86_64-unknown-linux-gnu
# # Run address sanitizer
# RUSTFLAGS="-Z sanitizer=address" \ # Run thread sanitizer
# cargo test -p tokio-threadpool --tests RUSTFLAGS="-Z sanitizer=thread" \
# 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
fi fi
- | - |
set -e set -e

View File

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