Author: jkorous Date: Wed Aug 15 08:50:45 2018 New Revision: 339781 URL: http://llvm.org/viewvc/llvm-project?rev=339781&view=rev Log: [clangd][tests] Fix typo in tests - invalid LSP exit message
Syntactically invalid JSON payload was causing clangd to terminate because of unexpected EOF rather than exit as a response to LSP exit message. Differential Revision: https://reviews.llvm.org/D50641 Modified: clang-tools-extra/trunk/test/clangd/extra-flags.test clang-tools-extra/trunk/test/clangd/formatting.test clang-tools-extra/trunk/test/clangd/initialize-params.test clang-tools-extra/trunk/test/clangd/shutdown-with-exit.test clang-tools-extra/trunk/test/clangd/shutdown-without-exit.test clang-tools-extra/trunk/test/clangd/unsupported-method.test Modified: clang-tools-extra/trunk/test/clangd/extra-flags.test URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clangd/extra-flags.test?rev=339781&r1=339780&r2=339781&view=diff ============================================================================== --- clang-tools-extra/trunk/test/clangd/extra-flags.test (original) +++ clang-tools-extra/trunk/test/clangd/extra-flags.test Wed Aug 15 08:50:45 2018 @@ -49,6 +49,6 @@ --- {"jsonrpc":"2.0","id":5,"method":"shutdown"} --- -{"jsonrpc":"2.0":"method":"exit"} +{"jsonrpc":"2.0","method":"exit"} Modified: clang-tools-extra/trunk/test/clangd/formatting.test URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clangd/formatting.test?rev=339781&r1=339780&r2=339781&view=diff ============================================================================== --- clang-tools-extra/trunk/test/clangd/formatting.test (original) +++ clang-tools-extra/trunk/test/clangd/formatting.test Wed Aug 15 08:50:45 2018 @@ -184,4 +184,4 @@ --- {"jsonrpc":"2.0","id":6,"method":"shutdown"} --- -{"jsonrpc":"2.0":"method":"exit"} +{"jsonrpc":"2.0","method":"exit"} Modified: clang-tools-extra/trunk/test/clangd/initialize-params.test URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clangd/initialize-params.test?rev=339781&r1=339780&r2=339781&view=diff ============================================================================== --- clang-tools-extra/trunk/test/clangd/initialize-params.test (original) +++ clang-tools-extra/trunk/test/clangd/initialize-params.test Wed Aug 15 08:50:45 2018 @@ -46,4 +46,4 @@ # CHECK-NEXT: "jsonrpc": "2.0", # CHECK-NEXT: "result": null --- -{"jsonrpc":"2.0":"method":"exit"} +{"jsonrpc":"2.0","method":"exit"} Modified: clang-tools-extra/trunk/test/clangd/shutdown-with-exit.test URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clangd/shutdown-with-exit.test?rev=339781&r1=339780&r2=339781&view=diff ============================================================================== --- clang-tools-extra/trunk/test/clangd/shutdown-with-exit.test (original) +++ clang-tools-extra/trunk/test/clangd/shutdown-with-exit.test Wed Aug 15 08:50:45 2018 @@ -1,4 +1,4 @@ # RUN: clangd -lit-test < %s {"jsonrpc":"2.0","id":3,"method":"shutdown"} --- -{"jsonrpc":"2.0":"method":"exit"} +{"jsonrpc":"2.0","method":"exit"} Modified: clang-tools-extra/trunk/test/clangd/shutdown-without-exit.test URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clangd/shutdown-without-exit.test?rev=339781&r1=339780&r2=339781&view=diff ============================================================================== --- clang-tools-extra/trunk/test/clangd/shutdown-without-exit.test (original) +++ clang-tools-extra/trunk/test/clangd/shutdown-without-exit.test Wed Aug 15 08:50:45 2018 @@ -1,2 +1,2 @@ # RUN: not clangd -lit-test < %s -{"jsonrpc":"2.0":"method":"exit"} +{"jsonrpc":"2.0","method":"exit"} Modified: clang-tools-extra/trunk/test/clangd/unsupported-method.test URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/clangd/unsupported-method.test?rev=339781&r1=339780&r2=339781&view=diff ============================================================================== --- clang-tools-extra/trunk/test/clangd/unsupported-method.test (original) +++ clang-tools-extra/trunk/test/clangd/unsupported-method.test Wed Aug 15 08:50:45 2018 @@ -13,4 +13,4 @@ --- {"jsonrpc":"2.0","id":2,"method":"shutdown"} --- -{"jsonrpc":"2.0":"method":"exit"} +{"jsonrpc":"2.0","method":"exit"} _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits