Skip to content

Commit

Permalink
Fix regex in test case so that it doesn't match "coverage" in directory
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ahatanaka committed Jun 9, 2023
1 parent 2adf9c9 commit de3c01b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/test/Driver/cuda-no-pgo-or-coverage.cu
Original file line number Diff line number Diff line change
Expand Up @@ -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{{.*}}"
Expand Down

0 comments on commit de3c01b

Please sign in to comment.