diff --git a/compiler-rt/test/profile/instrprof-error.c b/compiler-rt/test/profile/instrprof-error.c index 4386d5321878..e73f182cacbb 100644 --- a/compiler-rt/test/profile/instrprof-error.c +++ b/compiler-rt/test/profile/instrprof-error.c @@ -1,7 +1,7 @@ // RUN: %clang_profgen -o %t -O3 %s // RUN: touch %t.profraw // RUN: chmod -w %t.profraw -// RUN: LLVM_PROFILE_FILE=%t.profraw LLVM_PROFILE_VERBOSE_ERRORS=1 %run %t 1 2>&1 | FileCheck %s +// RUN: env LLVM_PROFILE_FILE=%t.profraw LLVM_PROFILE_VERBOSE_ERRORS=1 %run %t 1 2>&1 | FileCheck %s // RUN: chmod +w %t.profraw int main(int argc, const char *argv[]) { diff --git a/compiler-rt/test/profile/instrprof-version-mismatch.c b/compiler-rt/test/profile/instrprof-version-mismatch.c index 49ce41177d3a..633fe9fa762a 100644 --- a/compiler-rt/test/profile/instrprof-version-mismatch.c +++ b/compiler-rt/test/profile/instrprof-version-mismatch.c @@ -1,5 +1,5 @@ // RUN: %clang_profgen -o %t -O3 %s -// RUN: LLVM_PROFILE_VERBOSE_ERRORS=1 %run %t 1 2>&1 | FileCheck %s +// RUN: env LLVM_PROFILE_VERBOSE_ERRORS=1 %run %t 1 2>&1 | FileCheck %s // override the version variable with a bogus version: unsigned long long __llvm_profile_raw_version = 10000; diff --git a/compiler-rt/test/profile/instrprof-visibility.cpp b/compiler-rt/test/profile/instrprof-visibility.cpp index de81af9c3b50..08b886536fb4 100644 --- a/compiler-rt/test/profile/instrprof-visibility.cpp +++ b/compiler-rt/test/profile/instrprof-visibility.cpp @@ -1,5 +1,5 @@ // RUN: %clangxx_profgen -fcoverage-mapping %S/Inputs/instrprof-visibility-helper.cpp -o %t %s -// RUN: LLVM_PROFILE_FILE=%t.profraw %run %t +// RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t // RUN: llvm-profdata merge %t.profraw -o %t.profdata // RUN: llvm-profdata show --all-functions %t.profraw | FileCheck %s --check-prefix=PROFILE // RUN: llvm-cov show %t -instr-profile=%t.profdata | FileCheck %s --check-prefix=COV