From c04aa383ff9b956b77f288bc7e006fa78a5b21b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Tomko?= Date: Fri, 24 Aug 2018 13:30:17 +0200 Subject: [PATCH] tests: pass ULLONG_MAX to qemuMonitorJSONGetBalloonInfo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Test that we correctly accept 64-bit unsigned numbers for QEMU. Signed-off-by: Ján Tomko Reviewed-by: Daniel P. Berrangé --- tests/qemumonitorjsontest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/qemumonitorjsontest.c b/tests/qemumonitorjsontest.c index 94fddeec5e..5c77db337f 100644 --- a/tests/qemumonitorjsontest.c +++ b/tests/qemumonitorjsontest.c @@ -1518,7 +1518,7 @@ testQemuMonitorJSONqemuMonitorJSONGetBalloonInfo(const void *data) if (qemuMonitorTestAddItem(test, "query-balloon", "{" " \"return\": {" - " \"actual\": 4294967296" + " \"actual\": 18446744073709551615" " }," " \"id\": \"libvirt-9\"" "}") < 0) @@ -1527,7 +1527,7 @@ testQemuMonitorJSONqemuMonitorJSONGetBalloonInfo(const void *data) if (qemuMonitorJSONGetBalloonInfo(qemuMonitorTestGetMonitor(test), &currmem) < 0) goto cleanup; - if (currmem != (4294967296ULL/1024)) { + if (currmem != (18446744073709551615ULL/1024)) { virReportError(VIR_ERR_INTERNAL_ERROR, "Unexpected currmem value: %llu", currmem); goto cleanup;