summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Burgess IV <george.burgess.iv@gmail.com>2019-11-22 18:13:18 -0800
committerGeorge Burgess IV <george.burgess.iv@gmail.com>2019-11-22 18:13:18 -0800
commit9f13a032b6d7f720caf6511d0c9b1b6b7d2bbc67 (patch)
tree871f933afba00f45f9e72a4b69e9126483fbaadf
parente956952edec140d2475aa7c8cbe20fbdd3320634 (diff)
downloadbcm5719-llvm-9f13a032b6d7f720caf6511d0c9b1b6b7d2bbc67.tar.gz
bcm5719-llvm-9f13a032b6d7f720caf6511d0c9b1b6b7d2bbc67.zip
clang-tidy: don't use an absolute path in a test
`run_clang_tidy` takes a regular expression to match against compile_commands.json entries. If we pass "%t/test.cpp" and "%t" expands to anything that includes chars that a regex treats specially, like '+', this test starts failing.
-rw-r--r--clang-tools-extra/test/clang-tidy/infrastructure/run-clang-tidy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/test/clang-tidy/infrastructure/run-clang-tidy.cpp b/clang-tools-extra/test/clang-tidy/infrastructure/run-clang-tidy.cpp
index 31c4d681ebc..0d0e41e022a 100644
--- a/clang-tools-extra/test/clang-tidy/infrastructure/run-clang-tidy.cpp
+++ b/clang-tools-extra/test/clang-tidy/infrastructure/run-clang-tidy.cpp
@@ -9,7 +9,7 @@
// RUN: echo " value: '0'" >> %t/.clang-tidy
// RUN: cp "%s" "%t/test.cpp"
// RUN: cd "%t"
-// RUN: not %run_clang_tidy "%t/test.cpp"
+// RUN: not %run_clang_tidy "test.cpp"
int main()
{
OpenPOWER on IntegriCloud