From 9f13a032b6d7f720caf6511d0c9b1b6b7d2bbc67 Mon Sep 17 00:00:00 2001 From: George Burgess IV Date: Fri, 22 Nov 2019 18:13:18 -0800 Subject: [PATCH] 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. --- .../test/clang-tidy/infrastructure/run-clang-tidy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 31c4d681ebc9..0d0e41e022ae 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() {