Skip to content

Commit 19a9f22

Browse files
committed
[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.
1 parent c6e996a commit 19a9f22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/test/asan/TestCases/Posix/ignore_free_hook.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
// RUN: |& FileCheck %s -check-prefix=CHECK-IGNORE
55
// RUN: %clangxx_asan -O2 %s -o %t -DTEST=ignore_twice && not %run %t \
66
// RUN: |& FileCheck %s -check-prefix=CHECK-IGNORE-2
7-
// RUN: %clangxx_asan -O2 %s -o %t -DTEST=mismatch && not %run %t \
7+
// RUN: %clangxx_asan -O2 %s -o %t -DTEST=mismatch && %env_asan_opts=alloc_dealloc_mismatch=1 not %run %t \
88
// RUN: |& FileCheck %s -check-prefix=CHECK-MISMATCH
9-
// RUN: %clangxx_asan -O2 %s -o %t -DTEST=ignore_mismatch && %run %t \
9+
// RUN: %clangxx_asan -O2 %s -o %t -DTEST=ignore_mismatch && %env_asan_opts=alloc_dealloc_mismatch=1 %run %t \
1010
// RUN: |& FileCheck %s -check-prefix=CHECK-IGNORE-MISMATCH
1111
// RUN: %clangxx_asan -O2 %s -o %t -DTEST=double_delete && not %run %t \
1212
// RUN: |& FileCheck %s -check-prefix=CHECK-DOUBLE-DELETE

0 commit comments

Comments
 (0)