The feature is supported since qemu-5.1. Use real qemu-5.0 caps for the
test.
Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
...rtio-options-memballoon-freepage-reporting.x86_64-5.0.0.err} | 0
tests/qemuxml2argvtest.c | 2 +-
2 files changed, 1 insertion(+), 1 deletion(-)
rename tests/qemuxml2argvdata/{virtio-options-memballoon-freepage-reporting.err =>
virtio-options-memballoon-freepage-reporting.x86_64-5.0.0.err} (100%)
diff --git a/tests/qemuxml2argvdata/virtio-options-memballoon-freepage-reporting.err
b/tests/qemuxml2argvdata/virtio-options-memballoon-freepage-reporting.x86_64-5.0.0.err
similarity index 100%
rename from tests/qemuxml2argvdata/virtio-options-memballoon-freepage-reporting.err
rename to
tests/qemuxml2argvdata/virtio-options-memballoon-freepage-reporting.x86_64-5.0.0.err
diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c
index 07cc2f9bef..840daab25a 100644
--- a/tests/qemuxml2argvtest.c
+++ b/tests/qemuxml2argvtest.c
@@ -2421,10 +2421,10 @@ mymain(void)
DO_TEST_CAPS_LATEST("virtio-options-input-packed");
DO_TEST_CAPS_LATEST("virtio-options-memballoon-packed");
DO_TEST_CAPS_LATEST("virtio-options-memballoon-freepage-reporting");
+
DO_TEST_CAPS_VER_PARSE_ERROR("virtio-options-memballoon-freepage-reporting",
"5.0.0");
DO_TEST_CAPS_LATEST("virtio-options-net-packed");
DO_TEST_CAPS_LATEST("virtio-options-rng-packed");
DO_TEST_CAPS_LATEST("virtio-options-video-packed");
-
DO_TEST_PARSE_ERROR_NOCAPS("virtio-options-memballoon-freepage-reporting");
DO_TEST_CAPS_LATEST("fd-memory-numa-topology");
DO_TEST_CAPS_LATEST("fd-memory-numa-topology2");
--
2.41.0