]> git.ipfire.org Git - thirdparty/libvirt.git/commit
testutilsqemu: Rework setting of fake capabilities
authorPeter Krempa <pkrempa@redhat.com>
Fri, 3 Mar 2023 12:07:41 +0000 (13:07 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 6 Mar 2023 19:55:50 +0000 (20:55 +0100)
commitce79cf6ab4edf16aad47e7d50388679b61393e34
treee78038260476b6c4d5a4651e6bd7f2cb930f66c2
parentf7fa1d4e11cbc7358c7023438bcfa53354544a7a
testutilsqemu: Rework setting of fake capabilities

Rather that populate a virQEMUCaps object we now populate a bitmap with
the fake capabilities and transfer it into the virQEMUCaps later.

This unifies the code paths between the fully fake caps tests and real
caps + fake flags.

Also the same approach will be used in upcomming patch to add
possibility to mask out flags from real capabilities.

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