summaryrefslogtreecommitdiff
path: root/test/asan/TestCases/printf-5.c
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2014-05-26 13:44:57 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2014-05-26 13:44:57 +0000
commitd7ae348bc52edf6eab4f5520c4e83817306166c1 (patch)
tree5bae336cf562fcffa6f0d9153c33a2d90cf47b0a /test/asan/TestCases/printf-5.c
parent51d28680772cb0b03b0d9ceb0f6aef60a0e9aece (diff)
[ASan tests] Use ASAN_OPTIONS in a portable way
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209629 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/asan/TestCases/printf-5.c')
-rw-r--r--test/asan/TestCases/printf-5.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/asan/TestCases/printf-5.c b/test/asan/TestCases/printf-5.c
index 7433ac094..5bb43cbbb 100644
--- a/test/asan/TestCases/printf-5.c
+++ b/test/asan/TestCases/printf-5.c
@@ -1,8 +1,8 @@
// RUN: %clang_asan -O2 %s -o %t
// We need replace_intrin=0 to avoid reporting errors in memcpy.
-// RUN: ASAN_OPTIONS=replace_intrin=0:check_printf=1 not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s
-// RUN: ASAN_OPTIONS=replace_intrin=0:check_printf=0 %run %t 2>&1 | FileCheck --check-prefix=CHECK-OFF %s
-// RUN: ASAN_OPTIONS=replace_intrin=0 not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s
+// RUN: env ASAN_OPTIONS=replace_intrin=0:check_printf=1 not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s
+// RUN: env ASAN_OPTIONS=replace_intrin=0:check_printf=0 %run %t 2>&1 | FileCheck --check-prefix=CHECK-OFF %s
+// RUN: env ASAN_OPTIONS=replace_intrin=0 not %run %t 2>&1 | FileCheck --check-prefix=CHECK-ON %s
#include <stdio.h>
#include <string.h>