From: Jakob Stoklund Olesen Date: Thu, 6 Sep 2012 16:29:03 +0000 (+0000) Subject: Tighten up regexps some more. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e5264f19386dc607ed43328329dad35a724a3de;p=clang Tighten up regexps some more. These tests were failing for me because the .* was greedily matching up to the /libexec/ld-elf.so.1" later on the same line. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163328 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/freebsd.c b/test/Driver/freebsd.c index e87e18fa01..1b7bb92348 100644 --- a/test/Driver/freebsd.c +++ b/test/Driver/freebsd.c @@ -50,25 +50,25 @@ // RUN: %clang %s -### -o %t.o 2>&1 \ // RUN: -target mips-unknown-freebsd10.0 -ccc-clang-archs mips \ // RUN: | FileCheck --check-prefix=CHECK-MIPS %s -// CHECK-MIPS: "{{.*}}ld{{.*}}" +// CHECK-MIPS: "{{[^" ]*}}ld{{[^" ]*}}" // CHECK-MIPS: "-dynamic-linker" "{{.*}}/libexec/ld-elf.so.1" // CHECK-MIPS-NOT: "--hash-style={{gnu|both}}" // RUN: %clang %s -### -o %t.o 2>&1 \ // RUN: -target mipsel-unknown-freebsd10.0 -ccc-clang-archs mipsel \ // RUN: | FileCheck --check-prefix=CHECK-MIPSEL %s -// CHECK-MIPSEL: "{{.*}}ld{{.*}}" +// CHECK-MIPSEL: "{{[^" ]*}}ld{{[^" ]*}}" // CHECK-MIPSEL: "-dynamic-linker" "{{.*}}/libexec/ld-elf.so.1" // CHECK-MIPSEL-NOT: "--hash-style={{gnu|both}}" // RUN: %clang %s -### -o %t.o 2>&1 \ // RUN: -target mips64-unknown-freebsd10.0 -ccc-clang-archs mips64 \ // RUN: | FileCheck --check-prefix=CHECK-MIPS64 %s -// CHECK-MIPS64: "{{.*}}ld{{.*}}" +// CHECK-MIPS64: "{{[^" ]*}}ld{{[^" ]*}}" // CHECK-MIPS64: "-dynamic-linker" "{{.*}}/libexec/ld-elf.so.1" // CHECK-MIPS64-NOT: "--hash-style={{gnu|both}}" // RUN: %clang %s -### -o %t.o 2>&1 \ // RUN: -target mips64el-unknown-freebsd10.0 -ccc-clang-archs mips64el \ // RUN: | FileCheck --check-prefix=CHECK-MIPS64EL %s -// CHECK-MIPS64EL: "{{.*}}ld{{.*}}" +// CHECK-MIPS64EL: "{{[^" ]*}}ld{{[^" ]*}}" // CHECK-MIPS64EL: "-dynamic-linker" "{{.*}}/libexec/ld-elf.so.1" // CHECK-MIPS64EL-NOT: "--hash-style={{gnu|both}}"