summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/env.c
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-12-02 01:24:52 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-12-02 01:24:52 +0000
commitbdf7e1dd4bf3651f8e22d19e86bec9f020a6c5a5 (patch)
tree48b42649382498e00cb057cf485fe904ce6257bd /clang/test/Driver/env.c
parentceb44dfd825c354fb57edfbbc1a2b4fdab8f06b0 (diff)
downloadbcm5719-llvm-bdf7e1dd4bf3651f8e22d19e86bec9f020a6c5a5.tar.gz
bcm5719-llvm-bdf7e1dd4bf3651f8e22d19e86bec9f020a6c5a5.zip
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
Diffstat (limited to 'clang/test/Driver/env.c')
-rw-r--r--clang/test/Driver/env.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Driver/env.c b/clang/test/Driver/env.c
index 1d28fc0091d..5ce5831ccd2 100644
--- a/clang/test/Driver/env.c
+++ b/clang/test/Driver/env.c
@@ -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
OpenPOWER on IntegriCloud