]> granicus.if.org Git - clang/commitdiff
Rely on fewer features of the 'env' command. Darwin only supports '-i'.
authorChandler Carruth <chandlerc@gmail.com>
Tue, 2 Dec 2014 01:24:52 +0000 (01:24 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 2 Dec 2014 01:24:52 +0000 (01:24 +0000)
I'm explicitly setting LC_ALL=C somewhat for documentation, but
hopefully this also removes some host variation from the test results.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@223102 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/env.c

index 1d28fc0091d7ab6faf145f97bb2e4744a10af62c..5ce5831ccd248a3f5617fa597d039fcf8490380c 100644 (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