Re: [PATCH 3/3] virnetdevbandwidthtest: Introduce testVirNetDevBandwidthSet

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

 



On 01/27/2014 07:03 AM, Michal Privoznik wrote:
> The test tries to set some QoS limits and check if the commands
> that are actually executed are the expected ones.
> 
> Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
> ---
>  tests/virnetdevbandwidthtest.c | 98 ++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 98 insertions(+)
> 

> +
> +    if (getenv("LIBVIRT_SKIP_CLEANUP") == NULL)
> +        unlink(outfile);
> +
> +    VIR_FORCE_CLOSE(outfile_fd);

Unlink before close may cause grief on mingw; close before unlink is
slightly more portable.  But it's nice to see that my idea worked for
testing this without needing an LD_PRELOAD mockup.  ACK.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

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