[llvm-commits] [compiler-rt] r171145 - /compiler-rt/trunk/lib/asan/lit_tests/malloc_delete_mismatch.cc

Kostya Serebryany kcc at google.com
Wed Dec 26 23:40:24 PST 2012


Author: kcc
Date: Thu Dec 27 01:40:24 2012
New Revision: 171145

URL: http://llvm.org/viewvc/llvm-project?rev=171145&view=rev
Log:
[asan] relax asan/lit_tests/malloc_delete_mismatch.cc to make it pass on Mac 10.7 (where extra frames creep in between malloc and main)

Modified:
    compiler-rt/trunk/lib/asan/lit_tests/malloc_delete_mismatch.cc

Modified: compiler-rt/trunk/lib/asan/lit_tests/malloc_delete_mismatch.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/malloc_delete_mismatch.cc?rev=171145&r1=171144&r2=171145&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/malloc_delete_mismatch.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/malloc_delete_mismatch.cc Thu Dec 27 01:40:24 2012
@@ -18,9 +18,9 @@
 }
 // CHECK: ERROR: AddressSanitizer: alloc-dealloc-mismatch (malloc vs operator delete) on 0x
 // CHECK-NEXT: #0{{.*}}operator delete
-// CHECK-NEXT: #1{{.*}}main
+// CHECK: #{{.*}}main
 // CHECK: is located 0 bytes inside of 10-byte region
 // CHECK-NEXT: allocated by thread T0 here:
 // CHECK-NEXT: #0{{.*}}malloc
-// CHECK-NEXT: #1{{.*}}main
+// CHECK: #{{.*}}main
 // CHECK: HINT: {{.*}} you may set ASAN_OPTIONS=alloc_dealloc_mismatch=0





More information about the llvm-commits mailing list