summaryrefslogtreecommitdiff
path: root/test/asan/TestCases/strstr-1.c
diff options
context:
space:
mode:
authorYury Gribov <y.gribov@samsung.com>2015-06-02 14:59:26 +0000
committerYury Gribov <y.gribov@samsung.com>2015-06-02 14:59:26 +0000
commit433e7850d93d11766f9524158af64b65f0cf11dd (patch)
tree58c51434a85970762136d138bb422846e6a808d1 /test/asan/TestCases/strstr-1.c
parent181152c06e46f1eeb65b92769e1daadc80115c89 (diff)
[ASan] Fixed tests to pass on Darwin. Patch by Maria Guseva!
Differential Revision: http://reviews.llvm.org/D10159 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@238837 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/asan/TestCases/strstr-1.c')
-rw-r--r--test/asan/TestCases/strstr-1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/asan/TestCases/strstr-1.c b/test/asan/TestCases/strstr-1.c
index 5cbd5c353..ac5dff270 100644
--- a/test/asan/TestCases/strstr-1.c
+++ b/test/asan/TestCases/strstr-1.c
@@ -2,7 +2,8 @@
// RUN: %clang_asan %s -o %t && ASAN_OPTIONS=strict_string_checks=true not %run %t 2>&1 | FileCheck %s
// Test intercept_strstr asan option
-// RUN: ASAN_OPTIONS=intercept_strstr=false %run %t 2>&1
+// Disable other interceptors because strlen may be called inside strstr
+// RUN: ASAN_OPTIONS=intercept_strstr=false:replace_str=false %run %t 2>&1
#include <assert.h>
#include <string.h>