mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
tests: assume JSON monitor in qemuMonitorTestNewSimple
The only user of the qemuMonitorTestNewSimple macro is using JSON. Always pass 'true' to qemuMonitorTestNew and remove the 'json' argument. Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
0c1e035085
commit
92f130a2e1
@ -1318,7 +1318,7 @@ qemuMonitorTestNewFromFile(const char *fileName,
|
|||||||
if (virTestLoadFile(fileName, &json) < 0)
|
if (virTestLoadFile(fileName, &json) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
if (simple && !(test = qemuMonitorTestNewSimple(true, xmlopt)))
|
if (simple && !(test = qemuMonitorTestNewSimple(xmlopt)))
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
/* Our JSON parser expects replies to be separated by a newline character.
|
/* Our JSON parser expects replies to be separated by a newline character.
|
||||||
|
@ -74,8 +74,8 @@ int qemuMonitorTestAddItemExpect(qemuMonitorTestPtr test,
|
|||||||
bool apostrophe,
|
bool apostrophe,
|
||||||
const char *response);
|
const char *response);
|
||||||
|
|
||||||
# define qemuMonitorTestNewSimple(json, xmlopt) \
|
# define qemuMonitorTestNewSimple(xmlopt) \
|
||||||
qemuMonitorTestNew(json, xmlopt, NULL, NULL, NULL, NULL)
|
qemuMonitorTestNew(true, xmlopt, NULL, NULL, NULL, NULL)
|
||||||
# define qemuMonitorTestNewSchema(xmlopt, schema) \
|
# define qemuMonitorTestNewSchema(xmlopt, schema) \
|
||||||
qemuMonitorTestNew(true, xmlopt, NULL, NULL, NULL, schema)
|
qemuMonitorTestNew(true, xmlopt, NULL, NULL, NULL, schema)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user