From: Peter Krempa Date: Mon, 22 May 2023 15:08:27 +0000 (+0200) Subject: testQemuAgentFSTrim: Rewrite using qemuMonitorTestAddItemVerbatim X-Git-Tag: v9.5.0-rc1~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4f07b371d5d4097db27108feed9ea7fdc7371c6;p=thirdparty%2Flibvirt.git testQemuAgentFSTrim: Rewrite using qemuMonitorTestAddItemVerbatim Replace qemuMonitorTestAddItemParams by qemuMonitorTestAddItemVerbatim Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- diff --git a/tests/qemuagenttest.c b/tests/qemuagenttest.c index 04faf7b83a..3c24a3139f 100644 --- a/tests/qemuagenttest.c +++ b/tests/qemuagenttest.c @@ -197,10 +197,11 @@ testQemuAgentFSTrim(const void *data) if (qemuMonitorTestAddAgentSyncResponse(test) < 0) return -1; - if (qemuMonitorTestAddItemParams(test, "guest-fstrim", - "{ \"return\" : {} }", - "minimum", "1337", - NULL) < 0) + if (qemuMonitorTestAddItemVerbatim(test, + "{\"execute\":\"guest-fstrim\"," + " \"arguments\": {\"minimum\":1337}}", + NULL, + "{ \"return\" : {}}") < 0) return -1; if (qemuAgentFSTrim(qemuMonitorTestGetAgent(test), 1337) < 0)