[compiler-rt] r276031 - [asan] trying to fix the android bot
Kostya Serebryany via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 19 14:35:04 PDT 2016
Author: kcc
Date: Tue Jul 19 16:35:01 2016
New Revision: 276031
URL: http://llvm.org/viewvc/llvm-project?rev=276031&view=rev
Log:
[asan] trying to fix the android bot
Modified:
compiler-rt/trunk/test/asan/TestCases/Linux/memmem_test.cc
Modified: compiler-rt/trunk/test/asan/TestCases/Linux/memmem_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Linux/memmem_test.cc?rev=276031&r1=276030&r2=276031&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Linux/memmem_test.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Linux/memmem_test.cc Tue Jul 19 16:35:01 2016
@@ -1,6 +1,6 @@
// RUN: %clangxx_asan %s -o %t
-// RUN: not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK --check-prefix=A1
-// RUN: not %run %t 1 2>&1 | FileCheck %s --check-prefix=CHECK --check-prefix=A2
+// RUN: not %run %t 2>&1 | FileCheck %s --check-prefix=A1
+// RUN: not %run %t 1 2>&1 | FileCheck %s --check-prefix=A2
// RUN: %env_asan_opts=intercept_memmem=0 %run %t
#include <string.h>
@@ -12,10 +12,14 @@ int main(int argc, char **argv) {
res = memmem(a1, sizeof(a1) + 1, a2, sizeof(a2)); // BOOM
else
res = memmem(a1, sizeof(a1), a2, sizeof(a2) + 1); // BOOM
- // CHECK: AddressSanitizer: stack-buffer-overflow
- // CHECK: {{#0.*memmem}}
- // CHECK: {{#1.*main}}
+ // A1: AddressSanitizer: stack-buffer-overflow
+ // A1: {{#0.*memmem}}
+ // A1-NEXT: {{#1.*main}}
// A1: 'a1' <== Memory access at offset
+ //
+ // A2: AddressSanitizer: stack-buffer-overflow
+ // A2: {{#0.*memmem}}
+ // A2-NEXT: {{#1.*main}}
// A2: 'a2' <== Memory access at offset
return res == NULL;
}
More information about the llvm-commits
mailing list