forked from OSchip/llvm-project
[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:
parent
0b11db50dd
commit
ddf646b8c7
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue