mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-12 04:58:32 +03:00
testQemuMonitorJSONqemuMonitorJSONSendKeyHoldtime: Rewrite using qemuMonitorTestAddItemVerbatim
Replace qemuMonitorTestAddItemParams by qemuMonitorTestAddItemVerbatim Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
b4f07b371d
commit
1885c7a9ca
@ -2036,14 +2036,16 @@ testQemuMonitorJSONqemuMonitorJSONSendKeyHoldtime(const void *opaque)
|
|||||||
if (!(test = qemuMonitorTestNewSchema(xmlopt, data->schema)))
|
if (!(test = qemuMonitorTestNewSchema(xmlopt, data->schema)))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (qemuMonitorTestAddItemParams(test, "send-key",
|
if (qemuMonitorTestAddItemVerbatim(test,
|
||||||
"{\"return\":{}}",
|
"{\"execute\":\"send-key\","
|
||||||
"hold-time", "31337",
|
" \"arguments\":{\"keys\":[{\"type\":\"number\",\"data\":43},"
|
||||||
"keys", "[{\"type\":\"number\",\"data\":43},"
|
" {\"type\":\"number\",\"data\":26},"
|
||||||
"{\"type\":\"number\",\"data\":26},"
|
" {\"type\":\"number\",\"data\":46},"
|
||||||
"{\"type\":\"number\",\"data\":46},"
|
" {\"type\":\"number\",\"data\":32}],"
|
||||||
"{\"type\":\"number\",\"data\":32}]",
|
" \"hold-time\":31337},"
|
||||||
NULL, NULL) < 0)
|
" \"id\":\"libvirt-1\"}",
|
||||||
|
NULL,
|
||||||
|
"{ \"return\" : {}}") < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (qemuMonitorJSONSendKey(qemuMonitorTestGetMonitor(test),
|
if (qemuMonitorJSONSendKey(qemuMonitorTestGetMonitor(test),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user