提交 08529e1e 编写于 作者: J Jiri Denemark

tests: Fix "Reponse" typo

Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
上级 2dcacc0e
...@@ -96,8 +96,8 @@ qemuMonitorTestItemFree(qemuMonitorTestItemPtr item) ...@@ -96,8 +96,8 @@ qemuMonitorTestItemFree(qemuMonitorTestItemPtr item)
* Appends data for a reply to the outgoing buffer * Appends data for a reply to the outgoing buffer
*/ */
int int
qemuMonitorTestAddReponse(qemuMonitorTestPtr test, qemuMonitorTestAddResponse(qemuMonitorTestPtr test,
const char *response) const char *response)
{ {
size_t want = strlen(response) + 2; size_t want = strlen(response) + 2;
size_t have = test->outgoingCapacity - test->outgoingLength; size_t have = test->outgoingCapacity - test->outgoingLength;
...@@ -122,12 +122,12 @@ int ...@@ -122,12 +122,12 @@ int
qemuMonitorTestAddUnexpectedErrorResponse(qemuMonitorTestPtr test) qemuMonitorTestAddUnexpectedErrorResponse(qemuMonitorTestPtr test)
{ {
if (test->agent || test->json) { if (test->agent || test->json) {
return qemuMonitorTestAddReponse(test, return qemuMonitorTestAddResponse(test,
"{ \"error\": " "{ \"error\": "
" { \"desc\": \"Unexpected command\", " " { \"desc\": \"Unexpected command\", "
" \"class\": \"UnexpectedCommand\" } }"); " \"class\": \"UnexpectedCommand\" } }");
} else { } else {
return qemuMonitorTestAddReponse(test, "unexpected command"); return qemuMonitorTestAddResponse(test, "unexpected command");
} }
} }
...@@ -162,7 +162,7 @@ qemuMonitorReportError(qemuMonitorTestPtr test, const char *errmsg, ...) ...@@ -162,7 +162,7 @@ qemuMonitorReportError(qemuMonitorTestPtr test, const char *errmsg, ...)
goto cleanup; goto cleanup;
} }
ret = qemuMonitorTestAddReponse(test, jsonmsg); ret = qemuMonitorTestAddResponse(test, jsonmsg);
cleanup: cleanup:
va_end(msgargs); va_end(msgargs);
...@@ -499,7 +499,7 @@ qemuMonitorTestProcessCommandDefault(qemuMonitorTestPtr test, ...@@ -499,7 +499,7 @@ qemuMonitorTestProcessCommandDefault(qemuMonitorTestPtr test,
if (data->command_name && STRNEQ(data->command_name, cmdname)) if (data->command_name && STRNEQ(data->command_name, cmdname))
ret = qemuMonitorTestAddUnexpectedErrorResponse(test); ret = qemuMonitorTestAddUnexpectedErrorResponse(test);
else else
ret = qemuMonitorTestAddReponse(test, data->response); ret = qemuMonitorTestAddResponse(test, data->response);
cleanup: cleanup:
VIR_FREE(cmdcopy); VIR_FREE(cmdcopy);
...@@ -569,7 +569,7 @@ qemuMonitorTestProcessGuestAgentSync(qemuMonitorTestPtr test, ...@@ -569,7 +569,7 @@ qemuMonitorTestProcessGuestAgentSync(qemuMonitorTestPtr test,
goto cleanup; goto cleanup;
ret = qemuMonitorTestAddReponse(test, retmsg); ret = qemuMonitorTestAddResponse(test, retmsg);
cleanup: cleanup:
virJSONValueFree(val); virJSONValueFree(val);
...@@ -659,7 +659,7 @@ qemuMonitorTestProcessCommandWithArgs(qemuMonitorTestPtr test, ...@@ -659,7 +659,7 @@ qemuMonitorTestProcessCommandWithArgs(qemuMonitorTestPtr test,
} }
/* arguments checked out, return the response */ /* arguments checked out, return the response */
ret = qemuMonitorTestAddReponse(test, data->response); ret = qemuMonitorTestAddResponse(test, data->response);
cleanup: cleanup:
VIR_FREE(argstr); VIR_FREE(argstr);
...@@ -911,7 +911,7 @@ qemuMonitorTestNew(bool json, ...@@ -911,7 +911,7 @@ qemuMonitorTestNew(bool json,
if (!greeting) if (!greeting)
greeting = json ? QEMU_JSON_GREETING : QEMU_TEXT_GREETING; greeting = json ? QEMU_JSON_GREETING : QEMU_TEXT_GREETING;
if (qemuMonitorTestAddReponse(test, greeting) < 0) if (qemuMonitorTestAddResponse(test, greeting) < 0)
goto error; goto error;
if (qemuMonitorCommonTestInit(test) < 0) if (qemuMonitorCommonTestInit(test) < 0)
......
...@@ -39,8 +39,8 @@ int qemuMonitorTestAddHandler(qemuMonitorTestPtr test, ...@@ -39,8 +39,8 @@ int qemuMonitorTestAddHandler(qemuMonitorTestPtr test,
void *opaque, void *opaque,
virFreeCallback freecb); virFreeCallback freecb);
int qemuMonitorTestAddReponse(qemuMonitorTestPtr test, int qemuMonitorTestAddResponse(qemuMonitorTestPtr test,
const char *response); const char *response);
int qemuMonitorTestAddUnexpectedErrorResponse(qemuMonitorTestPtr test); int qemuMonitorTestAddUnexpectedErrorResponse(qemuMonitorTestPtr test);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册