From: Petr Hosek Date: Tue, 20 Apr 2021 20:42:18 +0000 (-0700) Subject: [Driver] Don't use capture for InstalledDir X-Git-Tag: llvmorg-14-init~9013 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=caff17e503fe81d69e90dd69b14f5149659f9db4;p=platform%2Fupstream%2Fllvm.git [Driver] Don't use capture for InstalledDir This is another attempt to address the issue introduced in ae8b2cab67408a043a4fe964d16e4803553c4ee0. We cannot capture InstalledDir because FileCheck doesn't handle the backslashes correctly, so instead we just consume the entire path prefix which is what other tests are doing. --- diff --git a/clang/test/Driver/darwin-ld.c b/clang/test/Driver/darwin-ld.c index 7c782e1..9fe68f1 100644 --- a/clang/test/Driver/darwin-ld.c +++ b/clang/test/Driver/darwin-ld.c @@ -368,5 +368,4 @@ // RUN: %clang -target x86_64-apple-darwin10 -### %t.o 2> %t.log // RUN: FileCheck -check-prefix=INSTALL-DIR %s < %t.log -// INSTALL-DIR: InstalledDir: [[INSTALLDIR:.+$]] -// INSTALL-DIR: "-L[[INSTALLDIR]]{{/|\\\\}}..{{/|\\\\}}lib" +// INSTALL-DIR: "-L{{.*}}{{/|\\\\}}..{{/|\\\\}}lib"