]> git.ipfire.org Git - thirdparty/libvirt.git/commit
testutilsqemu: Introduce ARG_QEMU_CAPS_DEL, to mask out flags from real caps
authorPeter Krempa <pkrempa@redhat.com>
Fri, 3 Mar 2023 12:11:51 +0000 (13:11 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 6 Mar 2023 19:55:50 +0000 (20:55 +0100)
commitcdf82cdb98aa1eb1f67c189251a2a54af38a92e0
tree0f7ea56d6043b1d803f1bc5ff4c1ec4dd8b9b5f7
parentce79cf6ab4edf16aad47e7d50388679b61393e34
testutilsqemu: Introduce ARG_QEMU_CAPS_DEL, to mask out flags from real caps

In certain cases we want to use as-real capabilities as possible but
that doesn't allow testing certain fallback scenarios of features that
can be complied out of QEMU.

ARG_QEMU_CAPS_DEL can be used similarly to ARG_QEMU_CAPS but the flag
arguments are actually masked out of the resulting caps.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/testutilsqemu.c
tests/testutilsqemu.h