From ddf646b8c7823b5c5ba73d22f5f1ded4d767e559 Mon Sep 17 00:00:00 2001 From: Yury Gribov Date: Tue, 2 Jun 2015 14:59:26 +0000 Subject: [ASan] Fixed tests to pass on Darwin. Patch by Maria Guseva! Differential Revision: http://reviews.llvm.org/D10159 llvm-svn: 238837 --- compiler-rt/test/asan/TestCases/strcasestr-1.c | 3 ++- compiler-rt/test/asan/TestCases/strcasestr-2.c | 3 ++- compiler-rt/test/asan/TestCases/strstr-1.c | 3 ++- compiler-rt/test/asan/TestCases/strstr-2.c | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) (limited to 'compiler-rt') 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 #include 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 #include -- cgit v1.2.1