[clang] de3c01b - Fix regex in test case so that it doesn't match "coverage" in directory
Akira Hatanaka via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 9 14:21:49 PDT 2023
Author: Akira Hatanaka
Date: 2023-06-09T14:20:17-07:00
New Revision: de3c01b06fe5854d2bf72c516e63eaa294e75fd2
URL: https://github.com/llvm/llvm-project/commit/de3c01b06fe5854d2bf72c516e63eaa294e75fd2
DIFF: https://github.com/llvm/llvm-project/commit/de3c01b06fe5854d2bf72c516e63eaa294e75fd2.diff
LOG: Fix regex in test case so that it doesn't match "coverage" in directory
names
The test case was failing because "-f{{[^"]*coverage.*}}" was matching
the following string:
"-fdebug-compilation-dir=/Users/buildslave/jenkins/workspace/coverage/"
Differential Revision: https://reviews.llvm.org/D152485
Added:
Modified:
clang/test/Driver/cuda-no-pgo-or-coverage.cu
Removed:
################################################################################
diff --git a/clang/test/Driver/cuda-no-pgo-or-coverage.cu b/clang/test/Driver/cuda-no-pgo-or-coverage.cu
index 01449fe7ae833..cd89f0f2e969c 100644
--- a/clang/test/Driver/cuda-no-pgo-or-coverage.cu
+++ b/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{{.*}}"
More information about the cfe-commits
mailing list