summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/asan/TestCases
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2014-08-29 01:16:18 +0000
committerKostya Serebryany <kcc@google.com>2014-08-29 01:16:18 +0000
commitc148f7c3af2c814d7c678bc2106fda9c47332902 (patch)
tree80ebc411a638aa048e5c39aebccd3add10fc29b7 /compiler-rt/test/asan/TestCases
parentb1cd51e33c0f035ff8fdb06968c7df9f57e7e325 (diff)
downloadbcm5719-llvm-c148f7c3af2c814d7c678bc2106fda9c47332902.tar.gz
bcm5719-llvm-c148f7c3af2c814d7c678bc2106fda9c47332902.zip
[asan] enable poison_array_cookie back
llvm-svn: 216705
Diffstat (limited to 'compiler-rt/test/asan/TestCases')
-rw-r--r--compiler-rt/test/asan/TestCases/Linux/new_array_cookie_test.cc4
-rw-r--r--compiler-rt/test/asan/TestCases/Linux/new_array_cookie_uaf_test.cc2
2 files changed, 3 insertions, 3 deletions
diff --git a/compiler-rt/test/asan/TestCases/Linux/new_array_cookie_test.cc b/compiler-rt/test/asan/TestCases/Linux/new_array_cookie_test.cc
index 49545f09355..eb0314cc152 100644
--- a/compiler-rt/test/asan/TestCases/Linux/new_array_cookie_test.cc
+++ b/compiler-rt/test/asan/TestCases/Linux/new_array_cookie_test.cc
@@ -1,8 +1,8 @@
// REQUIRES: asan-64-bits
// RUN: %clangxx_asan -O3 %s -o %t
-// RUN %run %t
+// RUN: not %run %t 2>&1 | FileCheck %s
// RUN: ASAN_OPTIONS=poison_array_cookie=1 not %run %t 2>&1 | FileCheck %s
-// RUN: ASAN_OPTIONS=poison_array_cookie=0 %run %t
+// RUN: ASAN_OPTIONS=poison_array_cookie=0 %run %t
#include <stdio.h>
struct C {
int x;
diff --git a/compiler-rt/test/asan/TestCases/Linux/new_array_cookie_uaf_test.cc b/compiler-rt/test/asan/TestCases/Linux/new_array_cookie_uaf_test.cc
index 5d6379471c5..fee44217245 100644
--- a/compiler-rt/test/asan/TestCases/Linux/new_array_cookie_uaf_test.cc
+++ b/compiler-rt/test/asan/TestCases/Linux/new_array_cookie_uaf_test.cc
@@ -1,6 +1,6 @@
// REQUIRES: asan-64-bits
// RUN: %clangxx_asan -O3 %s -o %t
-// DISABLED: ASAN_OPTIONS=poison_array_cookie=1 not %run %t 2>&1 | FileCheck %s --check-prefix=COOKIE
+// RUN: ASAN_OPTIONS=poison_array_cookie=1 not %run %t 2>&1 | FileCheck %s --check-prefix=COOKIE
// RUN: ASAN_OPTIONS=poison_array_cookie=0 not %run %t 2>&1 | FileCheck %s --check-prefix=NO_COOKIE
#include <stdio.h>
#include <stdlib.h>
OpenPOWER on IntegriCloud