diff options
Diffstat (limited to 'clang-tools-extra/test/clangd/test-uri-posix.test')
-rw-r--r-- | clang-tools-extra/test/clangd/test-uri-posix.test | 30 |
1 files changed, 11 insertions, 19 deletions
diff --git a/clang-tools-extra/test/clangd/test-uri-posix.test b/clang-tools-extra/test/clangd/test-uri-posix.test index 9bfe21173c6..15cc09f605d 100644 --- a/clang-tools-extra/test/clangd/test-uri-posix.test +++ b/clang-tools-extra/test/clangd/test-uri-posix.test @@ -1,19 +1,11 @@ -# RUN: clangd -pretty -run-synchronously < %s | FileCheck -strict-whitespace %s
-# UNSUPPORTED: mingw32,win32
-# It is absolutely vital that this file has CRLF line endings.
-#
-# Test authority-less URI
-Content-Length: 125
-
-{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabilities":{},"trace":"off"}}
-#
-Content-Length: 152
-
-{"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"test:///foo.c","languageId":"c","version":1,"text":"void main() {}"}}}
-# CHECK: "uri": "file:///clangd-test/foo.c"
-Content-Length: 44
-
-{"jsonrpc":"2.0","id":5,"method":"shutdown"}
-Content-Length: 33
-
-{"jsonrpc":"2.0","method":"exit"}
+# RUN: clangd -lit-test < %s | FileCheck -strict-whitespace %s +# UNSUPPORTED: mingw32,win32 +# Test authority-less URI +{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":123,"rootPath":"clangd","capabilities":{},"trace":"off"}} +--- +{"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"uri":"test:///foo.c","languageId":"c","version":1,"text":"void main() {}"}}} +# CHECK: "uri": "file:///clangd-test/foo.c" +--- +{"jsonrpc":"2.0","id":5,"method":"shutdown"} +--- +{"jsonrpc":"2.0","method":"exit"} |