[cfe-commits] r121270 - /cfe/trunk/test/Driver/sysroot-flags.c
Chandler Carruth
chandlerc at gmail.com
Wed Dec 8 11:11:45 PST 2010
Author: chandlerc
Date: Wed Dec 8 13:11:45 2010
New Revision: 121270
URL: http://llvm.org/viewvc/llvm-project?rev=121270&view=rev
Log:
Make this test resilient to whether or not the Linux toolchain renders the
sysroot flag to the link command as a joined flag or a separate flag.
Modified:
cfe/trunk/test/Driver/sysroot-flags.c
Modified: cfe/trunk/test/Driver/sysroot-flags.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/sysroot-flags.c?rev=121270&r1=121269&r2=121270&view=diff
==============================================================================
--- cfe/trunk/test/Driver/sysroot-flags.c (original)
+++ cfe/trunk/test/Driver/sysroot-flags.c Wed Dec 8 13:11:45 2010
@@ -10,7 +10,7 @@
// RUN: --sysroot=/foo/bar -o /dev/null %s 2>&1 | \
// RUN: FileCheck %s -check-prefix=SYSROOT_EQ
// SYSROOT_EQ: "-isysroot" "/foo/bar"
-// SYSROOT_EQ: "--sysroot" "/foo/bar"
+// SYSROOT_EQ: "--sysroot{{" "|=}}/foo/bar"
// Check for overriding the header sysroot by providing both --sysroot and
// -isysroot.
@@ -18,11 +18,11 @@
// RUN: --sysroot=/foo/bar -o /dev/null %s 2>&1 | FileCheck %s \
// RUN: -check-prefix=ISYSROOT_AND_SYSROOT
// ISYSROOT_AND_SYSROOT: "-isysroot" "/baz"
-// ISYSROOT_AND_SYSROOT: "--sysroot" "/foo/bar"
+// ISYSROOT_AND_SYSROOT: "--sysroot{{" "|=}}/foo/bar"
// Check that omitting the equals works as well.
// RUN: %clang -### -ccc-host-triple x86_64-unknown-linux-gnu \
// RUN: --sysroot /foo/bar -o /dev/null %s 2>&1 | \
// RUN: FileCheck %s -check-prefix=SYSROOT_SEPARATE
// SYSROOT_SEPARATE: "-isysroot" "/foo/bar"
-// SYSROOT_SEPARATE: "--sysroot" "/foo/bar"
+// SYSROOT_SEPARATE: "--sysroot{{" "|=}}/foo/bar"
More information about the cfe-commits
mailing list