[ASan] Fixed tests to pass on Darwin. Patch by Maria Guseva!

Differential Revision: http://reviews.llvm.org/D10159

llvm-svn: 238837
This commit is contained in:
Yury Gribov 2015-06-02 14:59:26 +00:00
parent 0b11db50dd
commit ddf646b8c7
4 changed files with 8 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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>

View File

@ -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>