Re: [PATCH v3 2/2] bhyve: add xml2args unittest

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

 



  Ján Tomko wrote:

> > +static virCapsPtr
> > +testBhyveBuildCapabilities(void)
> > +{
> > +    virCapsPtr caps;
> > +    virCapsGuestPtr guest;
> > +
> > +    if ((caps = virCapabilitiesNew(virArchFromHost(),
> 
> Getting the arch from the host seems wrong in a test, but it seems the bhyve
> driver doesn't care about archs.

That's correct, bhyve driver doesn't care about archs currently.

> > +    if (!(conn = virGetConnect()))
> 
> Does this have any side-effects? It doesn't seem to be used anywhere.

No, it doesn't, I dropped it.

> caps and xmlopt should be unref'd here.

Fixed.

> ACK with the leak fixed and virGetConnect removed (or explained).

Thanks! Pushed with these fixes.

Roman Bogorodskiy

--
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]