[compiler-rt] [sanitizer] Support "alloc_dealloc_mismatch" suppressions (PR #124197)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 26 14:53:45 PST 2025


================
@@ -0,0 +1,33 @@
+// Check that without suppressions, we catch the issue.
+// RUN: %clangxx_asan -O0 %s -o %t
+// RUN: not %run %t 2>&1 | FileCheck --check-prefix=CHECK-CRASH %s
+
+// RUN: echo "alloc_dealloc_mismatch:function" > %t.supp
+// RUN: %clangxx_asan -O0 %s -o %t && %env_asan_opts=suppressions='"%t.supp"' %run %t 2>&1 | FileCheck --check-prefix=CHECK-IGNORE %s
+// RUN: %clangxx_asan -O3 %s -o %t && %env_asan_opts=suppressions='"%t.supp"' %run %t 2>&1 | FileCheck --check-prefix=CHECK-IGNORE %s
+
+// XFAIL: android
----------------
vitalybuka wrote:

Probably Android test harness does not copy suppression onto device.
I assume it will fail here too, comment here will be helpful.

https://github.com/llvm/llvm-project/pull/124197


More information about the llvm-commits mailing list