[PATCH] D152485: Fix regex in test case so that it doesn't match "coverage" in directory names
Akira Hatanaka via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 8 16:28:29 PDT 2023
ahatanak created this revision.
ahatanak added reviewers: tra, MaskRay.
ahatanak added a project: clang.
Herald added a subscriber: wenlei.
Herald added a project: All.
ahatanak requested review of this revision.
The test case was failing because "-f{{[^"]*coverage.*}}" was matching the following string:
"-fdebug-compilation-dir=/Users/buildslave/jenkins/workspace/coverage/"
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D152485
Files:
clang/test/Driver/cuda-no-pgo-or-coverage.cu
Index: clang/test/Driver/cuda-no-pgo-or-coverage.cu
===================================================================
--- clang/test/Driver/cuda-no-pgo-or-coverage.cu
+++ clang/test/Driver/cuda-no-pgo-or-coverage.cu
@@ -26,7 +26,7 @@
// CHECK-NOT: error: unsupported option '-fprofile
// CHECK-NOT: error: invalid argument
// CHECK-DAG: "-fcuda-is-device"
-// CHECK-NOT: "-f{{[^"]*coverage.*}}"
+// CHECK-NOT: "-f{{[^"/]*coverage.*}}"
// CHECK-NOT: "-fprofile{{[^"]*}}"
// CHECK: "-triple" "x86_64-unknown-linux-gnu"
// PROF: "-fprofile{{.*}}"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152485.529773.patch
Type: text/x-patch
Size: 557 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230608/ac1fc912/attachment-0001.bin>
More information about the cfe-commits
mailing list