]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: assume JSON monitor in qemuMonitorTestNewSimple
authorJán Tomko <jtomko@redhat.com>
Fri, 14 Jun 2019 18:10:15 +0000 (20:10 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 17 Jun 2019 14:12:57 +0000 (16:12 +0200)
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>
tests/qemumonitortestutils.c
tests/qemumonitortestutils.h

index 8d7c503c6ecb7fa5cf256a4869110569032f05bf..03261d649e0f819fda890a29d1a8730e53a78c00 100644 (file)
@@ -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.
index a2d2d3082001ef0329290cb1c5f03eb5a5e4e585..23192c1223bc0d98407fcc792a05aab07a6f9160 100644 (file)
@@ -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)