Disable RUST_BACKTRACE when running sanitizers.

This is an attempt to work around rust-lang/rust#59125.

Fixes #729
This commit is contained in:
Thom Chiovoloni 2020-06-04 23:42:26 -07:00 committed by Thom Chiovoloni
parent f04b4b62b9
commit e3310b980d

View File

@ -93,6 +93,11 @@ jobs:
RUSTFLAGS: -Zsanitizer=address RUSTFLAGS: -Zsanitizer=address
RUSTDOCFLAGS: -Zsanitizer=address RUSTDOCFLAGS: -Zsanitizer=address
ASAN_OPTIONS: 'detect_stack_use_after_return=1' ASAN_OPTIONS: 'detect_stack_use_after_return=1'
# Work around https://github.com/rust-lang/rust/issues/59125 by
# disabling backtraces. In an ideal world we'd probably suppress the
# leak sanitization, but we don't care about backtraces here, so long
# as the other tests have them.
RUST_BACKTRACE: '0'
run: cargo -Z build-std test --features 'bundled-full session buildtime_bindgen with-asan' --target x86_64-unknown-linux-gnu run: cargo -Z build-std test --features 'bundled-full session buildtime_bindgen with-asan' --target x86_64-unknown-linux-gnu
# Ensure clippy doesn't complain. # Ensure clippy doesn't complain.