mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +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)
|
||||
goto cleanup;
|
||||
|
||||
if (simple && !(test = qemuMonitorTestNewSimple(true, xmlopt)))
|
||||
if (simple && !(test = qemuMonitorTestNewSimple(xmlopt)))
|
||||
goto cleanup;
|
||||
|
||||
/* Our JSON parser expects replies to be separated by a newline character.
|
||||
|
@ -74,8 +74,8 @@ int qemuMonitorTestAddItemExpect(qemuMonitorTestPtr test,
|
||||
bool apostrophe,
|
||||
const char *response);
|
||||
|
||||
# define qemuMonitorTestNewSimple(json, xmlopt) \
|
||||
qemuMonitorTestNew(json, xmlopt, NULL, NULL, NULL, NULL)
|
||||
# define qemuMonitorTestNewSimple(xmlopt) \
|
||||
qemuMonitorTestNew(true, xmlopt, NULL, NULL, NULL, NULL)
|
||||
# define qemuMonitorTestNewSchema(xmlopt, schema) \
|
||||
qemuMonitorTestNew(true, xmlopt, NULL, NULL, NULL, schema)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user