[PATCH] D45281: [asan] Fix aligned_alloc test case

Kostya Kortchinsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 4 13:07:55 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL329226: [asan] Fix aligned_alloc test case (authored by cryptoad, committed by ).

Repository:
  rL LLVM

https://reviews.llvm.org/D45281

Files:
  compiler-rt/trunk/test/asan/TestCases/Linux/aligned_alloc-alignment.cc


Index: compiler-rt/trunk/test/asan/TestCases/Linux/aligned_alloc-alignment.cc
===================================================================
--- compiler-rt/trunk/test/asan/TestCases/Linux/aligned_alloc-alignment.cc
+++ compiler-rt/trunk/test/asan/TestCases/Linux/aligned_alloc-alignment.cc
@@ -2,8 +2,7 @@
 // RUN: %env_asan_opts=allocator_may_return_null=0 not %run %t 2>&1 | FileCheck %s
 // RUN: %env_asan_opts=allocator_may_return_null=1 %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-NULL
 
-// FIXME(alekseyshl): #0 frame does not look as expected on ppc64be, fix it.
-// UNSUPPORTED: android,powerpc64
+// UNSUPPORTED: android
 
 // REQUIRES: stable-runtime
 
@@ -15,7 +14,7 @@
 int main() {
   void *p = aligned_alloc(17, 100);
   // CHECK: ERROR: AddressSanitizer: invalid allocation alignment: 17
-  // CHECK: {{#0 0x.* in .*aligned_alloc}}
+  // CHECK: {{#0 0x.* in .*}}{{aligned_alloc|memalign}}
   // CHECK: {{#1 0x.* in main .*aligned_alloc-alignment.cc:}}[[@LINE-3]]
   // CHECK: SUMMARY: AddressSanitizer: invalid-allocation-alignment
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45281.141030.patch
Type: text/x-patch
Size: 1061 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180404/652a90ef/attachment.bin>


More information about the llvm-commits mailing list