From: Chandler Carruth Date: Tue, 2 Dec 2014 01:24:52 +0000 (+0000) Subject: Rely on fewer features of the 'env' command. Darwin only supports '-i'. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b947ab8892baa516eaaca388f2efe26c90410a88;p=clang 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@223102 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/env.c b/test/Driver/env.c index 1d28fc0091..5ce5831ccd 100644 --- a/test/Driver/env.c +++ b/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