tests: pass ULLONG_MAX to qemuMonitorJSONGetBalloonInfo

Test that we correctly accept 64-bit unsigned numbers for QEMU.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Ján Tomko 2018-08-24 13:30:17 +02:00
parent 7d6c58ed12
commit c04aa383ff
1 changed files with 2 additions and 2 deletions

View File

@ -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;