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.

llvm-svn: 302066

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

index 3bcf6e3..4b210f2 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}}