mirror of https://gitee.com/openkylin/libvirt.git
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:
parent
7d6c58ed12
commit
c04aa383ff
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue