Rely on fewer features of the 'env' command. Darwin only supports '-i'.

I'm explicitly setting LC_ALL=C somewhat for documentation, but
hopefully this also removes some host variation from the test results.

llvm-svn: 223102
This commit is contained in:
Chandler Carruth 2014-12-02 01:24:52 +00:00
parent ceb44dfd82
commit bdf7e1dd4b
1 changed files with 2 additions and 2 deletions

View File

@ -5,12 +5,12 @@
// REQUIRES: shell
//
// The PATH variable is heavily used when trying to find a linker.
// RUN: env -u PATH -- %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
// RUN: env -i LC_ALL=C %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
// RUN: --target=i386-unknown-linux \
// RUN: --sysroot=%S/Inputs/basic_linux_tree \
// RUN: | FileCheck --check-prefix=CHECK-LD-32 %s
//
// RUN: env PATH="" %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
// RUN: env -i LC_ALL=C PATH="" %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \
// RUN: --target=i386-unknown-linux \
// RUN: --sysroot=%S/Inputs/basic_linux_tree \
// RUN: | FileCheck --check-prefix=CHECK-LD-32 %s