[PATCH] D133847: [test][clang] fix pattern for LDGARANGE-NOT in debug-options-lld test

Azat Khuzhin via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 14 03:54:52 PDT 2022


azat created this revision.
azat added reviewers: hokein, dblaikie.
Herald added a project: All.
azat requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Now, when the filename contains lld, it does not filter correctly.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D133847

Files:
  clang/test/Driver/debug-options-lld.c


Index: clang/test/Driver/debug-options-lld.c
===================================================================
--- clang/test/Driver/debug-options-lld.c
+++ clang/test/Driver/debug-options-lld.c
@@ -8,5 +8,5 @@
 // RUN: %clang -### -target x86_64-unknown-linux -fuse-ld=lld -flto=thin -gdwarf-aranges %s 2>&1 | FileCheck -check-prefix=LLDGARANGE %s
 //
 // GARANGE-DAG: -generate-arange-section
-// LDGARANGE-NOT: {{".*lld.*"}} {{.*}} "-generate-arange-section"
-// LLDGARANGE: {{".*lld.*"}} {{.*}} "-generate-arange-section"
+// LDGARANGE-NOT: {{"[^"]*lld(\.exe){0,1}".*}} {{.*}} "-generate-arange-section"
+// LLDGARANGE: {{"[^"]*lld(\.exe){0,1}".*}} {{.*}} "-generate-arange-section"


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133847.460029.patch
Type: text/x-patch
Size: 689 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220914/c225d540/attachment-0001.bin>


More information about the cfe-commits mailing list