Re: [libvirt] [PATCH] test: Fake security driver support in capabilities

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 09, 2010 at 03:29:10PM -0500, Cole Robinson wrote:
> Having some value in capabilities helps testing this stuff in
> virt-manager.
> 
> Signed-off-by: Cole Robinson <crobinso@xxxxxxxxxx>
> ---
>  src/test/test_driver.c |    8 ++++++++
>  1 files changed, 8 insertions(+), 0 deletions(-)
> 
> diff --git a/src/test/test_driver.c b/src/test/test_driver.c
> index 411c5cd..3f95a22 100644
> --- a/src/test/test_driver.c
> +++ b/src/test/test_driver.c
> @@ -205,6 +205,14 @@ testBuildCapabilities(virConnectPtr conn) {
>      caps->privateDataAllocFunc = testDomainObjPrivateAlloc;
>      caps->privateDataFreeFunc = testDomainObjPrivateFree;
>  
> +    caps->host.secModel.model = strdup("testSecurity");
> +    if (!caps->host.secModel.model)
> +        goto no_memory;
> +
> +    caps->host.secModel.doi = strdup("");
> +    if (!caps->host.secModel.doi)
> +        goto no_memory;
> +
>      return caps;
>  
>  no_memory:

  ACK,

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel@xxxxxxxxxxxx  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]