mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +00:00
Enable backtraces in CI & disable TSAN (#436)
This PR enables backtraces when running tests and disables tsan for the thread pool. The thread sanitizer was generating too many false positives. Once #329 lands, then it can be re-enabled.
This commit is contained in:
parent
45bcea6c4f
commit
85cf47de86
22
.travis.yml
22
.travis.yml
@ -34,6 +34,7 @@ script:
|
|||||||
|
|
||||||
export ASAN_OPTIONS="detect_odr_violation=0 detect_leaks=0"
|
export ASAN_OPTIONS="detect_odr_violation=0 detect_leaks=0"
|
||||||
export TSAN_OPTIONS="suppressions=`pwd`/ci/tsan"
|
export TSAN_OPTIONS="suppressions=`pwd`/ci/tsan"
|
||||||
|
export RUST_BACKTRACE=1
|
||||||
|
|
||||||
# === tokio-timer ====
|
# === tokio-timer ====
|
||||||
|
|
||||||
@ -45,15 +46,18 @@ 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
|
||||||
|
|
||||||
# === tokio-threadpool ====
|
# TODO: Uncomment the sanitizer tests once the fence in steal issue is
|
||||||
|
# resolved: https://github.com/tokio-rs/tokio/issues/329
|
||||||
# Run address sanitizer
|
#
|
||||||
RUSTFLAGS="-Z sanitizer=address" \
|
# # === tokio-threadpool ====
|
||||||
cargo test -p tokio-threadpool --tests
|
#
|
||||||
|
# # Run address sanitizer
|
||||||
# Run thread sanitizer
|
# RUSTFLAGS="-Z sanitizer=address" \
|
||||||
RUSTFLAGS="-Z sanitizer=thread" \
|
# cargo test -p tokio-threadpool --tests
|
||||||
cargo test -p tokio-threadpool --tests
|
#
|
||||||
|
# # Run thread sanitizer
|
||||||
|
# RUSTFLAGS="-Z sanitizer=thread" \
|
||||||
|
# cargo test -p tokio-threadpool --tests
|
||||||
fi
|
fi
|
||||||
- |
|
- |
|
||||||
set -e
|
set -e
|
||||||
|
Loading…
x
Reference in New Issue
Block a user