[PATCH] Add FreeBSD support to the address sanitizer's malloc_context_size.cc test case

Viktor Kutuzov vkutuzov at accesssoftek.com
Fri Jul 25 07:51:54 PDT 2014


Hi kcc, samsonov,

http://reviews.llvm.org/D4665

Files:
  test/asan/TestCases/malloc_context_size.cc

Index: test/asan/TestCases/malloc_context_size.cc
===================================================================
--- test/asan/TestCases/malloc_context_size.cc
+++ test/asan/TestCases/malloc_context_size.cc
@@ -18,14 +18,18 @@
   // CHECK-Darwin-NEXT: #0 0x{{.*}} in wrap__ZdaPv
   // CHECK-Windows: freed by thread T{{.*}} here:
   // CHECK-Windows-NEXT: #0 0x{{.*}} in operator delete[]
+  // CHECK-FreeBSD: freed by thread T{{.*}} here:
+  // CHECK-FreeBSD-NEXT: #0 0x{{.*}} in operator delete []
   // CHECK-NOT: #1 0x{{.*}}
 
   // CHECK-Linux: previously allocated by thread T{{.*}} here:
   // CHECK-Linux-NEXT: #0 0x{{.*}} in operator new[]
   // CHECK-Darwin: previously allocated by thread T{{.*}} here:
   // CHECK-Darwin-NEXT: #0 0x{{.*}} in wrap__Znam
   // CHECK-Windows: previously allocated by thread T{{.*}} here:
   // CHECK-Windows-NEXT: #0 0x{{.*}} in operator new[]
+  // CHECK-FreeBSD: previously allocated by thread T{{.*}} here:
+  // CHECK-FreeBSD-NEXT: #0 0x{{.*}} in operator new []
   // CHECK-NOT: #1 0x{{.*}}
 
   // CHECK: SUMMARY: AddressSanitizer: heap-use-after-free
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4665.11878.patch
Type: text/x-patch
Size: 1106 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140725/de82f769/attachment.bin>


More information about the llvm-commits mailing list