diff --git a/.azurepipelines/Ubuntu-GCC5.yml b/.azurepipelines/Ubuntu-GCC5.yml index b9a3b851cf3c2..1027738337808 100644 --- a/.azurepipelines/Ubuntu-GCC5.yml +++ b/.azurepipelines/Ubuntu-GCC5.yml @@ -24,3 +24,7 @@ jobs: container: ${{ variables.default_linux_image }} arch_list: "IA32,X64,ARM,AARCH64,RISCV64,LOONGARCH64" usePythonVersion: '' # use Python from the container image + extra_install_step: + - bash: sudo dnf -y install libasan + displayName: Install Sanitizer Libraries + condition: and(gt(variables.pkg_count, 0), succeeded()) diff --git a/.azurepipelines/templates/pr-gate-steps.yml b/.azurepipelines/templates/pr-gate-steps.yml index 78b2b2c8d9346..1c63f52542ca4 100644 --- a/.azurepipelines/templates/pr-gate-steps.yml +++ b/.azurepipelines/templates/pr-gate-steps.yml @@ -39,6 +39,8 @@ steps: - bash: | echo "##vso[task.setvariable variable=pkgs_to_build]${{ parameters.build_pkgs }}" echo "##vso[task.setvariable variable=pkg_count]${{ 1 }}" + echo "##vso[task.setvariable variable=ASAN_OPTIONS]detect_leaks=0" + echo "##vso[task.setvariable variable=GTEST_CATCH_EXCEPTIONS]0" # Fetch the target branch so that pr_eval can diff them. # Seems like azure pipelines/github changed checkout process in nov 2020.