summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2016-02-17 21:25:12 +0000
committerAlexey Samsonov <vonosmas@gmail.com>2016-02-17 21:25:12 +0000
commit2af1e3e963d5af7a674f101cfebbddd7e74460ae (patch)
tree27c75aac58a5990cf22a3edc66d52a986d5f5217
parentda71cb7b92bcb32027c95ec5092663f4f606d5f4 (diff)
downloadbcm5719-llvm-2af1e3e963d5af7a674f101cfebbddd7e74460ae.tar.gz
bcm5719-llvm-2af1e3e963d5af7a674f101cfebbddd7e74460ae.zip
PR26606: Make abort_on_error.cc test more portable.
llvm-svn: 261157
-rw-r--r--compiler-rt/test/asan/TestCases/Darwin/abort_on_error.cc2
-rw-r--r--compiler-rt/test/asan/TestCases/Linux/abort_on_error.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/test/asan/TestCases/Darwin/abort_on_error.cc b/compiler-rt/test/asan/TestCases/Darwin/abort_on_error.cc
index f09718bda06..295afb8442a 100644
--- a/compiler-rt/test/asan/TestCases/Darwin/abort_on_error.cc
+++ b/compiler-rt/test/asan/TestCases/Darwin/abort_on_error.cc
@@ -4,7 +4,7 @@
// RUN: %clangxx_asan %s -o %t
// Intentionally don't inherit the default ASAN_OPTIONS.
-// RUN: ASAN_OPTIONS="" not --crash %run %t 2>&1 | FileCheck %s
+// RUN: env ASAN_OPTIONS="" not --crash %run %t 2>&1 | FileCheck %s
// When we use lit's default ASAN_OPTIONS, we shouldn't crash.
// RUN: not %run %t 2>&1 | FileCheck %s
diff --git a/compiler-rt/test/asan/TestCases/Linux/abort_on_error.cc b/compiler-rt/test/asan/TestCases/Linux/abort_on_error.cc
index 406d98b6764..67fa9b83e65 100644
--- a/compiler-rt/test/asan/TestCases/Linux/abort_on_error.cc
+++ b/compiler-rt/test/asan/TestCases/Linux/abort_on_error.cc
@@ -4,7 +4,7 @@
// RUN: %clangxx_asan %s -o %t
// Intentionally don't inherit the default ASAN_OPTIONS.
-// RUN: ASAN_OPTIONS="" not %run %t 2>&1 | FileCheck %s
+// RUN: env ASAN_OPTIONS="" not %run %t 2>&1 | FileCheck %s
// When we use lit's default ASAN_OPTIONS, we shouldn't crash either. On Linux
// lit doesn't set ASAN_OPTIONS anyway.
// RUN: not %run %t 2>&1 | FileCheck %s
OpenPOWER on IntegriCloud