From 5fd3ad30a6634f7c05041a4a5bd942295059a00e Mon Sep 17 00:00:00 2001 From: Jonas Toth Date: Fri, 2 Nov 2018 16:36:21 +0000 Subject: [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 --- clang-tools-extra/test/clang-tidy/clang-tidy-run-with-database.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang-tools-extra/test/clang-tidy/clang-tidy-run-with-database.cpp') 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 -- cgit v1.2.3