Index: compiler-rt/trunk/test/asan/TestCases/sleep_before_dying.c =================================================================== --- compiler-rt/trunk/test/asan/TestCases/sleep_before_dying.c +++ compiler-rt/trunk/test/asan/TestCases/sleep_before_dying.c @@ -1,5 +1,5 @@ // RUN: %clang_asan -O2 %s -o %t -// RUN: env ASAN_OPTIONS="sleep_before_dying=1" not %run %t 2>&1 | FileCheck %s +// RUN: env ASAN_OPTIONS="$ASAN_OPTIONS:sleep_before_dying=1" not %run %t 2>&1 | FileCheck %s #include int main() { Index: compiler-rt/trunk/test/asan/TestCases/strcspn-1.c =================================================================== --- compiler-rt/trunk/test/asan/TestCases/strcspn-1.c +++ compiler-rt/trunk/test/asan/TestCases/strcspn-1.c @@ -1,5 +1,5 @@ // Test string s1 overflow in strcspn function -// RUN: %clang_asan %s -o %t && ASAN_OPTIONS=strict_string_checks=true not %run %t 2>&1 | FileCheck %s +// RUN: %clang_asan %s -o %t && env ASAN_OPTIONS=$ASAN_OPTIONS:strict_string_checks=true not %run %t 2>&1 | FileCheck %s // Test intercept_strspn asan option // RUN: env ASAN_OPTIONS=$ASAN_OPTIONS:intercept_strspn=false %run %t 2>&1 Index: compiler-rt/trunk/test/asan/TestCases/strcspn-2.c =================================================================== --- compiler-rt/trunk/test/asan/TestCases/strcspn-2.c +++ compiler-rt/trunk/test/asan/TestCases/strcspn-2.c @@ -1,5 +1,5 @@ // Test stopset overflow in strcspn function -// RUN: %clang_asan %s -o %t && ASAN_OPTIONS=strict_string_checks=true not %run %t 2>&1 | FileCheck %s +// RUN: %clang_asan %s -o %t && env ASAN_OPTIONS=$ASAN_OPTIONS:strict_string_checks=true not %run %t 2>&1 | FileCheck %s // Test intercept_strcspn asan option // RUN: env ASAN_OPTIONS=$ASAN_OPTIONS:intercept_strspn=false %run %t 2>&1 Index: compiler-rt/trunk/test/asan/TestCases/strpbrk-1.c =================================================================== --- compiler-rt/trunk/test/asan/TestCases/strpbrk-1.c +++ compiler-rt/trunk/test/asan/TestCases/strpbrk-1.c @@ -1,5 +1,5 @@ // Test string s1 overflow in strpbrk function -// RUN: %clang_asan %s -o %t && ASAN_OPTIONS=strict_string_checks=true not %run %t 2>&1 | FileCheck %s +// RUN: %clang_asan %s -o %t && env ASAN_OPTIONS=$ASAN_OPTIONS:strict_string_checks=true not %run %t 2>&1 | FileCheck %s // Test intercept_strpbrk asan option // RUN: env ASAN_OPTIONS=$ASAN_OPTIONS:intercept_strpbrk=false %run %t 2>&1 Index: compiler-rt/trunk/test/asan/TestCases/strpbrk-2.c =================================================================== --- compiler-rt/trunk/test/asan/TestCases/strpbrk-2.c +++ compiler-rt/trunk/test/asan/TestCases/strpbrk-2.c @@ -1,5 +1,5 @@ // Test stopset overflow in strpbrk function -// RUN: %clang_asan %s -o %t && ASAN_OPTIONS=strict_string_checks=true not %run %t 2>&1 | FileCheck %s +// RUN: %clang_asan %s -o %t && env ASAN_OPTIONS=$ASAN_OPTIONS:strict_string_checks=true not %run %t 2>&1 | FileCheck %s // Test intercept_strpbrk asan option // RUN: env ASAN_OPTIONS=$ASAN_OPTIONS:intercept_strpbrk=false %run %t 2>&1 Index: compiler-rt/trunk/test/asan/TestCases/strspn-1.c =================================================================== --- compiler-rt/trunk/test/asan/TestCases/strspn-1.c +++ compiler-rt/trunk/test/asan/TestCases/strspn-1.c @@ -1,5 +1,5 @@ // Test string s1 overflow in strspn function -// RUN: %clang_asan %s -o %t && ASAN_OPTIONS=strict_string_checks=true not %run %t 2>&1 | FileCheck %s +// RUN: %clang_asan %s -o %t && env ASAN_OPTIONS=$ASAN_OPTIONS:strict_string_checks=true not %run %t 2>&1 | FileCheck %s // Test intercept_strspn asan option // RUN: env ASAN_OPTIONS=$ASAN_OPTIONS:intercept_strspn=false %run %t 2>&1 Index: compiler-rt/trunk/test/asan/TestCases/strspn-2.c =================================================================== --- compiler-rt/trunk/test/asan/TestCases/strspn-2.c +++ compiler-rt/trunk/test/asan/TestCases/strspn-2.c @@ -1,5 +1,5 @@ // Test stopset overflow in strspn function -// RUN: %clang_asan %s -o %t && ASAN_OPTIONS=strict_string_checks=true not %run %t 2>&1 | FileCheck %s +// RUN: %clang_asan %s -o %t && env ASAN_OPTIONS=$ASAN_OPTIONS:strict_string_checks=true not %run %t 2>&1 | FileCheck %s // Test intercept_strspn asan option // RUN: env ASAN_OPTIONS=$ASAN_OPTIONS:intercept_strspn=false %run %t 2>&1 Index: compiler-rt/trunk/test/asan/TestCases/strstr-1.c =================================================================== --- compiler-rt/trunk/test/asan/TestCases/strstr-1.c +++ compiler-rt/trunk/test/asan/TestCases/strstr-1.c @@ -1,5 +1,5 @@ // Test haystack overflow in strstr function -// RUN: %clang_asan %s -o %t && ASAN_OPTIONS=strict_string_checks=true not %run %t 2>&1 | FileCheck %s +// RUN: %clang_asan %s -o %t && env ASAN_OPTIONS=$ASAN_OPTIONS:strict_string_checks=true not %run %t 2>&1 | FileCheck %s // Test intercept_strstr asan option // Disable other interceptors because strlen may be called inside strstr Index: compiler-rt/trunk/test/asan/TestCases/strstr-2.c =================================================================== --- compiler-rt/trunk/test/asan/TestCases/strstr-2.c +++ compiler-rt/trunk/test/asan/TestCases/strstr-2.c @@ -1,5 +1,5 @@ // Test needle overflow in strstr function -// RUN: %clang_asan %s -o %t && ASAN_OPTIONS=strict_string_checks=true not %run %t 2>&1 | FileCheck %s +// RUN: %clang_asan %s -o %t && env ASAN_OPTIONS=$ASAN_OPTIONS:strict_string_checks=true not %run %t 2>&1 | FileCheck %s // Test intercept_strstr asan option // Disable other interceptors because strlen may be called inside strstr