[libvirt] [PATCH] Adapt test suite to code movement in the QEMU driver
Eric Blake
eblake at redhat.com
Fri Dec 17 18:13:52 UTC 2010
On 12/17/2010 08:59 AM, Matthias Bolte wrote:
> ---
> tests/qemuargv2xmltest.c | 1 +
> tests/qemuhelptest.c | 5 +++--
> tests/qemuxml2argvtest.c | 8 +++++---
> tests/testutilsqemu.c | 6 ++----
> 4 files changed, 11 insertions(+), 9 deletions(-)
ACK. Fixes the problems I identified yesterday.
> diff --git a/tests/testutilsqemu.c b/tests/testutilsqemu.c
> index 72fc8aa..bfac307 100644
> --- a/tests/testutilsqemu.c
> +++ b/tests/testutilsqemu.c
> @@ -8,6 +8,7 @@
> # include "memory.h"
> # include "cpu_conf.h"
> # include "qemu/qemu_driver.h"
> +# include "qemu/qemu_domain.h"
>
> static virCapsGuestMachinePtr *testQemuAllocMachines(int *nmachines)
> {
> @@ -102,10 +103,7 @@ virCapsPtr testQemuCapsInit(void) {
> (machines = testQemuAllocMachines(&nmachines)) == NULL)
> goto cleanup;
>
> - caps->ns.parse = qemuDomainDefNamespaceParse;
> - caps->ns.free = qemuDomainDefNamespaceFree;
> - caps->ns.format = qemuDomainDefNamespaceFormatXML;
> - caps->ns.href = qemuDomainDefNamespaceHref;
> + qemuDomainSetNamespaceHooks(caps);
Ah, much nicer than my futile attempts at removing the 'static' modifier
from the now-private functions.
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20101217/0b6466e3/attachment-0001.sig>
More information about the libvir-list
mailing list