mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-23 14:33:10 +00:00
tests: qemumonitorjson: Add only required replies for blockstats test
testQemuMonitorJSONqemuMonitorJSONGetBlockStatsInfo added 4 replies but only one was used. Additionally the comment stated that 7 replies are going to be added. Signed-off-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
d802eb6ad1
commit
dca4abc0e3
@ -1772,11 +1772,7 @@ testQemuMonitorJSONqemuMonitorJSONGetBlockStatsInfo(const void *data)
|
|||||||
if (!test)
|
if (!test)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
/* fill in seven times - we are gonna ask seven times later on */
|
if (qemuMonitorTestAddItem(test, "query-blockstats", reply) < 0)
|
||||||
if (qemuMonitorTestAddItem(test, "query-blockstats", reply) < 0 ||
|
|
||||||
qemuMonitorTestAddItem(test, "query-blockstats", reply) < 0 ||
|
|
||||||
qemuMonitorTestAddItem(test, "query-blockstats", reply) < 0 ||
|
|
||||||
qemuMonitorTestAddItem(test, "query-blockstats", reply) < 0)
|
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
#define CHECK0FULL(var, value, varformat, valformat) \
|
#define CHECK0FULL(var, value, varformat, valformat) \
|
||||||
|
Loading…
Reference in New Issue
Block a user