Author: ibiryukov Date: Tue Jul 25 02:31:51 2017 New Revision: 308959 URL: http://llvm.org/viewvc/llvm-project?rev=308959&view=rev Log: [clangd] Workaround Windows test failures.
To properly fix this, Unix-specific paths should not be used when running tests on Windows. Modified: clang-tools-extra/trunk/test/clangd/definitions.test Modified: clang-tools-extra/trunk/test/clangd/definitions.test URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clangd/definitions.test?rev=308959&r1=308958&r2=308959&view=diff ============================================================================== --- clang-tools-extra/trunk/test/clangd/definitions.test (original) +++ clang-tools-extra/trunk/test/clangd/definitions.test Tue Jul 25 02:31:51 2017 @@ -138,8 +138,8 @@ Content-Length: 204 Content-Length: 148 {"jsonrpc":"2.0","id":1,"method":"textDocument/definition","params":{"textDocument":{"uri":"file:///main.cpp"},"position":{"line":2,"character":9}}} -# Go to macro -# CHECK: {"jsonrpc":"2.0","id":1,"result":[{"uri": "file:///main.cpp", "range": {"start": {"line": 0, "character": 8}, "end": {"line": 0, "character": 18}}}]} +# Go to macro. +# CHECK: {"jsonrpc":"2.0","id":1,"result":[{"uri": "file:///{{(C:/)?}}main.cpp", "range": {"start": {"line": 0, "character": 8}, "end": {"line": 0, "character": 18}}}]} Content-Length: 217 @@ -149,7 +149,7 @@ Content-Length: 148 {"jsonrpc":"2.0","id":1,"method":"textDocument/definition","params":{"textDocument":{"uri":"file:///main.cpp"},"position":{"line":1,"character":8}}} # Go to macro, re-defined later -# CHECK: {"jsonrpc":"2.0","id":1,"result":[{"uri": "file:///main.cpp", "range": {"start": {"line": 0, "character": 8}, "end": {"line": 0, "character": 13}}}]} +# CHECK: {"jsonrpc":"2.0","id":1,"result":[{"uri": "file:///{{(C:/)?}}main.cpp", "range": {"start": {"line": 0, "character": 8}, "end": {"line": 0, "character": 13}}}]} Content-Length: 148 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits