diff options
author | Yury Gribov <y.gribov@samsung.com> | 2015-06-02 14:59:26 +0000 |
---|---|---|
committer | Yury Gribov <y.gribov@samsung.com> | 2015-06-02 14:59:26 +0000 |
commit | ddf646b8c7823b5c5ba73d22f5f1ded4d767e559 (patch) | |
tree | 8a62d34e145af6c83461a7df0ac2a63634296678 /compiler-rt | |
parent | 0b11db50dd4401319a7eb7b23a2e8789cecda151 (diff) | |
download | bcm5719-llvm-ddf646b8c7823b5c5ba73d22f5f1ded4d767e559.tar.gz bcm5719-llvm-ddf646b8c7823b5c5ba73d22f5f1ded4d767e559.zip |
[ASan] Fixed tests to pass on Darwin. Patch by Maria Guseva!
Differential Revision: http://reviews.llvm.org/D10159
llvm-svn: 238837
Diffstat (limited to 'compiler-rt')
-rw-r--r-- | compiler-rt/test/asan/TestCases/strcasestr-1.c | 3 | ||||
-rw-r--r-- | compiler-rt/test/asan/TestCases/strcasestr-2.c | 3 | ||||
-rw-r--r-- | compiler-rt/test/asan/TestCases/strstr-1.c | 3 | ||||
-rw-r--r-- | compiler-rt/test/asan/TestCases/strstr-2.c | 3 |
4 files changed, 8 insertions, 4 deletions
diff --git a/compiler-rt/test/asan/TestCases/strcasestr-1.c b/compiler-rt/test/asan/TestCases/strcasestr-1.c index 642549e2555..5b864e03ab7 100644 --- a/compiler-rt/test/asan/TestCases/strcasestr-1.c +++ b/compiler-rt/test/asan/TestCases/strcasestr-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 strcasestr +// RUN: ASAN_OPTIONS=intercept_strstr=false:replace_str=false %run %t 2>&1 // There's no interceptor for strcasestr on Windows // XFAIL: win32 diff --git a/compiler-rt/test/asan/TestCases/strcasestr-2.c b/compiler-rt/test/asan/TestCases/strcasestr-2.c index a1b59885e60..97b3aa2846f 100644 --- a/compiler-rt/test/asan/TestCases/strcasestr-2.c +++ b/compiler-rt/test/asan/TestCases/strcasestr-2.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 strcasestr +// RUN: ASAN_OPTIONS=intercept_strstr=false:replace_str=false %run %t 2>&1 // There's no interceptor for strcasestr on Windows // XFAIL: win32 diff --git a/compiler-rt/test/asan/TestCases/strstr-1.c b/compiler-rt/test/asan/TestCases/strstr-1.c index 5cbd5c35350..ac5dff270fd 100644 --- a/compiler-rt/test/asan/TestCases/strstr-1.c +++ b/compiler-rt/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> diff --git a/compiler-rt/test/asan/TestCases/strstr-2.c b/compiler-rt/test/asan/TestCases/strstr-2.c index 1ee36de3157..9bf62b0bab7 100644 --- a/compiler-rt/test/asan/TestCases/strstr-2.c +++ b/compiler-rt/test/asan/TestCases/strstr-2.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> |