From: Tim Northover Date: Wed, 3 May 2017 19:20:45 +0000 (+0000) Subject: Tests: strengthen CHECK line to avoid picking up stray path. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=882a317852f6420ab10ea92ac76503a31546cca6;p=clang Tests: strengthen CHECK line to avoid picking up stray path. 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 --- diff --git a/test/Driver/arch-specific-libdir-rpath.c b/test/Driver/arch-specific-libdir-rpath.c index 3bcf6e3d3f..4b210f2cb4 100644 --- a/test/Driver/arch-specific-libdir-rpath.c +++ b/test/Driver/arch-specific-libdir-rpath.c @@ -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}}