Replace qemuMonitorTestAddItemParams by qemuMonitorTestAddItemVerbatim
Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
tests/qemuagenttest.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
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)
--
2.40.1