Skip to content

Commit

Permalink
Enable debug info in sanitized runs
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhoo committed Jan 29, 2020
1 parent 1ed709a commit 683a72c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ jobs:
- template: install-rust.yml@templates
parameters:
rust: nightly
- bash: |
sed -i '/\[features\]/i [profile.release]' Cargo.toml
sed -i '/profile.release/a debug = true' Cargo.toml
sed -i '/\[features\]/i [profile.bench]' Cargo.toml
sed -i '/profile.bench/a debug = true' Cargo.toml
cat Cargo.toml
displayName: Enable debug symbols
- script: |
env ASAN_OPTIONS="detect_odr_violation=0" RUSTFLAGS="-Z sanitizer=address" cargo test --release --features sanitize
displayName: cargo -Z sanitizer=address test
Expand All @@ -65,6 +72,13 @@ jobs:
- template: install-rust.yml@templates
parameters:
rust: nightly
- bash: |
sed -i '/\[features\]/i [profile.release]' Cargo.toml
sed -i '/profile.release/a debug = true' Cargo.toml
sed -i '/\[features\]/i [profile.bench]' Cargo.toml
sed -i '/profile.bench/a debug = true' Cargo.toml
cat Cargo.toml
displayName: Enable debug symbols
- script: |
env RUSTFLAGS="-Z sanitizer=leak" cargo test --release --features sanitize
displayName: cargo -Z sanitizer=leak test
Expand Down

0 comments on commit 683a72c

Please sign in to comment.