From dc7b2ce33d89cc1daaa6521404329b568a771789 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Wed, 8 Dec 2010 19:11:45 +0000 Subject: [PATCH] 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121270 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Driver/sysroot-flags.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/Driver/sysroot-flags.c b/test/Driver/sysroot-flags.c index fde9105c10..461c451e12 100644 --- a/test/Driver/sysroot-flags.c +++ b/test/Driver/sysroot-flags.c @@ -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" -- 2.40.0