summaryrefslogtreecommitdiffstats
path: root/tools/test-server
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2021-12-07 12:26:48 -0500
committerGitHub <noreply@github.com>2021-12-07 12:26:48 -0500
commit9e666a332aafeffdc15ceab6017fe377144a928b (patch)
tree4d5a27b5286cb95757ad45f097f4acf74dfb2159 /tools/test-server
parentef4ee0b2d42b1fe9ce36c67526cf853343d98ea0 (diff)
Support array args for JSON-RPC (#2046)
* #include an absolute path didn't work - because paths were taken to always be relative. * Add ability to send/receive JSON-RPC params optionally as an array. * More array conversions to json-native. * Simplified setting up of 'CallStyle' on JSONRPCConnection. * Small simplification in JSONRPCConnection. * Small improvements around JSON-RPC connection. * Improve some comments. Kick CI build.
Diffstat (limited to 'tools/test-server')
-rw-r--r--tools/test-server/test-server-main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/test-server/test-server-main.cpp b/tools/test-server/test-server-main.cpp
index a32d8c542..b4eead664 100644
--- a/tools/test-server/test-server-main.cpp
+++ b/tools/test-server/test-server-main.cpp
@@ -371,7 +371,7 @@ SlangResult TestServer::_executeUnitTest(const JSONRPCCall& call)
auto id = m_connection->getPersistentValue(call.id);
TestServerProtocol::ExecuteUnitTestArgs args;
- SLANG_RETURN_ON_FAIL(m_connection->toNativeOrSendError(call.params, &args, call.id));
+ SLANG_RETURN_ON_FAIL(m_connection->toNativeArgsOrSendError(call.params, &args, call.id));
auto sink = m_connection->getSink();
@@ -443,7 +443,7 @@ SlangResult TestServer::_executeTool(const JSONRPCCall& call)
TestServerProtocol::ExecuteToolTestArgs args;
- SLANG_RETURN_ON_FAIL(m_connection->toNativeOrSendError(call.params, &args, id));
+ SLANG_RETURN_ON_FAIL(m_connection->toNativeArgsOrSendError(call.params, &args, id));
auto sink = m_connection->getSink();