[compiler-rt] 19a9f22 - [asan] Enabled alloc_dealloc_mismatch in new test
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 12 09:56:39 PDT 2024
Author: Vitaly Buka
Date: 2024-07-12T09:56:21-07:00
New Revision: 19a9f22c17c3e46f49095c71e6922b4a1deae567
URL: https://github.com/llvm/llvm-project/commit/19a9f22c17c3e46f49095c71e6922b4a1deae567
DIFF: https://github.com/llvm/llvm-project/commit/19a9f22c17c3e46f49095c71e6922b4a1deae567.diff
LOG: [asan] Enabled alloc_dealloc_mismatch in new test
It's required for some test cases,
but off by default on some platforms.
Follow up to #96749.
Added:
Modified:
compiler-rt/test/asan/TestCases/Posix/ignore_free_hook.cpp
Removed:
################################################################################
diff --git a/compiler-rt/test/asan/TestCases/Posix/ignore_free_hook.cpp b/compiler-rt/test/asan/TestCases/Posix/ignore_free_hook.cpp
index 1017d63772bab..3266eef826eda 100644
--- a/compiler-rt/test/asan/TestCases/Posix/ignore_free_hook.cpp
+++ b/compiler-rt/test/asan/TestCases/Posix/ignore_free_hook.cpp
@@ -4,9 +4,9 @@
// RUN: |& FileCheck %s -check-prefix=CHECK-IGNORE
// RUN: %clangxx_asan -O2 %s -o %t -DTEST=ignore_twice && not %run %t \
// RUN: |& FileCheck %s -check-prefix=CHECK-IGNORE-2
-// RUN: %clangxx_asan -O2 %s -o %t -DTEST=mismatch && not %run %t \
+// RUN: %clangxx_asan -O2 %s -o %t -DTEST=mismatch && %env_asan_opts=alloc_dealloc_mismatch=1 not %run %t \
// RUN: |& FileCheck %s -check-prefix=CHECK-MISMATCH
-// RUN: %clangxx_asan -O2 %s -o %t -DTEST=ignore_mismatch && %run %t \
+// RUN: %clangxx_asan -O2 %s -o %t -DTEST=ignore_mismatch && %env_asan_opts=alloc_dealloc_mismatch=1 %run %t \
// RUN: |& FileCheck %s -check-prefix=CHECK-IGNORE-MISMATCH
// RUN: %clangxx_asan -O2 %s -o %t -DTEST=double_delete && not %run %t \
// RUN: |& FileCheck %s -check-prefix=CHECK-DOUBLE-DELETE
More information about the llvm-commits
mailing list