diff --git a/azure-pipelines.yml b/azure-pipelines.yml index aec8be93..a0e2d621 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -53,8 +53,14 @@ jobs: - template: install-rust.yml@templates parameters: rust: nightly + - bash: | + sudo ln -s /usr/bin/llvm-symbolizer-6.0 /usr/bin/llvm-symbolizer + sed -i '/\[features\]/i [profile.dev]' Cargo.toml + sed -i '/profile.dev/a opt-level = 1' 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 + env ASAN_OPTIONS="detect_odr_violation=0" RUSTFLAGS="-Z sanitizer=address" cargo test --features sanitize --target x86_64-unknown-linux-gnu displayName: cargo -Z sanitizer=address test - job: lsan dependsOn: deny @@ -65,8 +71,14 @@ jobs: - template: install-rust.yml@templates parameters: rust: nightly + - bash: | + sudo ln -s /usr/bin/llvm-symbolizer-6.0 /usr/bin/llvm-symbolizer + sed -i '/\[features\]/i [profile.dev]' Cargo.toml + sed -i '/profile.dev/a opt-level = 1' Cargo.toml + cat Cargo.toml + displayName: Enable debug symbols - script: | - env RUSTFLAGS="-Z sanitizer=leak" cargo test --release --features sanitize + env RUSTFLAGS="-Z sanitizer=leak" cargo test --features sanitize --target x86_64-unknown-linux-gnu displayName: cargo -Z sanitizer=leak test resources: