]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuxml2argvtest: Drop dependency between testInfoArgName and virQEMUCapsFlags enums v5.2.0-rc1
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 27 Mar 2019 16:30:44 +0000 (17:30 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 28 Mar 2019 08:54:23 +0000 (09:54 +0100)
commit97b729effeff89c4b913141d691af5fd17075982
tree5f56067aed6645d6b9c3ff21d1d7e2759e8ebb82
parent087a74e16091a12f09f00466d2d73e3e9ff76a83
qemuxml2argvtest: Drop dependency between testInfoArgName and virQEMUCapsFlags enums

Introduced in fdf6c89ee7b, this dependency looks weird. It was
needed because of the way that while() loop was written - it
fetches next argument in every iteration. Therefore, our only
option was for ARG_END to have the same value as QEMU_CAPS_LAST.
This also meant that QEMU_CAPS_* could have been only at the end
of the __VA_ARGS__.

This commit reworks the while() loop and removes the dependency.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
tests/qemuxml2argvtest.c