summaryrefslogtreecommitdiff
path: root/clang-tools-extra/test/clang-tidy/clang-tidy-run-with-database.cpp
diff options
context:
space:
mode:
authorJonas Toth <jonas.toth@gmail.com>2018-11-02 16:36:21 +0000
committerJonas Toth <jonas.toth@gmail.com>2018-11-02 16:36:21 +0000
commit5fd3ad30a6634f7c05041a4a5bd942295059a00e (patch)
tree7129369f8a6354e40712a2ade192c670973501a8 /clang-tools-extra/test/clang-tidy/clang-tidy-run-with-database.cpp
parent44261c305f90aeec9c8b4fc885718f71200b3927 (diff)
[fix][clang-tidy] fix for r345961 that introduced a test failure on Windows builds
r345961 introduced a path check in .\tools\clang\tools\extra\test\clang-tidy\clang-tidy-run-with-database.cpp. r345961 added a check line for a path that only handled / on unix machines and not \ on windows machines. This patch handles both cases. Patch by TWeaver. Differential Revision: https://reviews.llvm.org/D54036
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/clang-tidy-run-with-database.cpp')
-rw-r--r--clang-tools-extra/test/clang-tidy/clang-tidy-run-with-database.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/test/clang-tidy/clang-tidy-run-with-database.cpp b/clang-tools-extra/test/clang-tidy/clang-tidy-run-with-database.cpp
index f9b2955c6fd..f8c05a3f69e 100644
--- a/clang-tools-extra/test/clang-tidy/clang-tidy-run-with-database.cpp
+++ b/clang-tools-extra/test/clang-tidy/clang-tidy-run-with-database.cpp
@@ -11,7 +11,7 @@
// Regression test: shouldn't crash.
// RUN: not clang-tidy --checks=-*,modernize-use-nullptr -p %T %T/compilation-database-test/b/not-exist -header-filter=.* 2>&1 | FileCheck %s -check-prefix=CHECK-NOT-EXIST
-// CHECK-NOT-EXIST: Error while processing {{.*}}/not-exist.
+// CHECK-NOT-EXIST: Error while processing {{.*[/\\]}}not-exist.
// CHECK-NOT-EXIST: unable to handle compilation
// CHECK-NOT-EXIST: Found compiler error