[PATCH] D28071: Fix test for debug runtime.

Vitaly Buka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 22 16:12:14 PST 2016


vitalybuka created this revision.
vitalybuka added a reviewer: eugenis.
vitalybuka added a subscriber: llvm-commits.
Herald added a subscriber: kubabrecka.

If runtime compiled with debug on, main will not be the second frame.


https://reviews.llvm.org/D28071

Files:
  test/asan/TestCases/double-free.cc


Index: test/asan/TestCases/double-free.cc
===================================================================
--- test/asan/TestCases/double-free.cc
+++ test/asan/TestCases/double-free.cc
@@ -19,7 +19,7 @@
   free(x + argc - 1);  // BOOM
   // CHECK: AddressSanitizer: attempting double-free{{.*}}in thread T0
   // CHECK: #0 0x{{.*}} in {{.*}}free
-  // CHECK: #1 0x{{.*}} in main {{.*}}double-free.cc:[[@LINE-3]]
+  // CHECK: 0x{{.*}} in main {{.*}}double-free.cc:[[@LINE-3]]
   // CHECK: freed by thread T0 here:
   // MALLOC-CTX: #0 0x{{.*}} in {{.*}}free
   // MALLOC-CTX: #1 0x{{.*}} in main {{.*}}double-free.cc:[[@LINE-7]]


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28071.82380.patch
Type: text/x-patch
Size: 631 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161223/8a39d495/attachment.bin>


More information about the llvm-commits mailing list