[libvirt] [PATCH 1/6] Fake host CPU for qemu tests

Eric Blake eblake at redhat.com
Fri Apr 16 19:26:32 UTC 2010


On 04/16/2010 11:01 AM, Jiri Denemark wrote:
> ---
>  tests/testutilsqemu.c |   30 +++++++++++++++++++++++++++++-
>  1 files changed, 29 insertions(+), 1 deletions(-)
> 
> diff --git a/tests/testutilsqemu.c b/tests/testutilsqemu.c
> index 8dd26d4..e0e5e14 100644
> --- a/tests/testutilsqemu.c
> +++ b/tests/testutilsqemu.c
> @@ -6,6 +6,7 @@
>  # include "testutilsqemu.h"
>  # include "testutils.h"
>  # include "memory.h"
> +# include "cpu_conf.h"
>  
...

>  
> -    if ((machines = testQemuAllocMachines(&nmachines)) == NULL)
> +    if ((caps->host.cpu = virCPUDefCopy(&host_cpu)) == NULL ||
> +        (machines = testQemuAllocMachines(&nmachines)) == NULL)
>          goto cleanup;

ACK.

-- 
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/20100416/101bafac/attachment-0001.sig>


More information about the libvir-list mailing list