]> granicus.if.org Git - clang/commitdiff
Tests: strengthen CHECK line to avoid picking up stray path.
authorTim Northover <tnorthover@apple.com>
Wed, 3 May 2017 19:20:45 +0000 (19:20 +0000)
committerTim Northover <tnorthover@apple.com>
Wed, 3 May 2017 19:20:45 +0000 (19:20 +0000)
A bot had "-LTO" in its working directory, which matched the regex used in this
test. Since the arg is quoted, we can exploit that instead. Still broken if
there's a path with a quote in, but I think that's pretty niche.

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

test/Driver/arch-specific-libdir-rpath.c

index 3bcf6e3d3f868e866039350b6a6a36fe56e1c4d2..4b210f2cb412b03ba4d99f418a8c932415b62144 100644 (file)
@@ -81,5 +81,5 @@
 // RPATH-X86_64:    "-rpath" "[[RESDIR]]{{(/|\\\\)lib(/|\\\\)linux(/|\\\\)x86_64}}"
 // LIBPATH-AArch64: -L[[RESDIR]]{{(/|\\\\)lib(/|\\\\)linux(/|\\\\)aarch64}}
 // RPATH-AArch64:   "-rpath" "[[RESDIR]]{{(/|\\\\)lib(/|\\\\)linux(/|\\\\)aarch64}}"
-// NO-LIBPATH-NOT:  -L{{.*Inputs(/|\\\\)resource_dir}}
+// NO-LIBPATH-NOT:  "-L{{[^"]*Inputs(/|\\\\)resource_dir}}"
 // NO-RPATH-NOT:    "-rpath" {{.*(/|\\\\)Inputs(/|\\\\)resource_dir}}