Author: dyung
Date: Wed Oct 24 18:21:08 2018
New Revision: 345229

URL: http://llvm.org/viewvc/llvm-project?rev=345229&view=rev
Log:
Fix test to work on Windows.

Modified:
    clang-tools-extra/trunk/unittests/clangd/ClangdUnitTests.cpp

Modified: clang-tools-extra/trunk/unittests/clangd/ClangdUnitTests.cpp
URL: 
http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clangd/ClangdUnitTests.cpp?rev=345229&r1=345228&r2=345229&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clangd/ClangdUnitTests.cpp (original)
+++ clang-tools-extra/trunk/unittests/clangd/ClangdUnitTests.cpp Wed Oct 24 
18:21:08 2018
@@ -199,7 +199,13 @@ main.cpp:2:3: error: something terrible
   // Transform dianostics and check the results.
   std::vector<std::pair<clangd::Diagnostic, std::vector<clangd::Fix>>> 
LSPDiags;
   toLSPDiags(
-      D, URIForFile("/path/to/foo/bar/main.cpp"), ClangdDiagnosticOptions(),
+      D,
+#ifdef _WIN32
+      URIForFile("c:\\path\\to\\foo\\bar\\main.cpp"),
+#else
+      URIForFile("/path/to/foo/bar/main.cpp"),
+#endif
+      ClangdDiagnosticOptions(),
       [&](clangd::Diagnostic LSPDiag, ArrayRef<clangd::Fix> Fixes) {
         LSPDiags.push_back(
             {std::move(LSPDiag),


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to