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

Eric Blake eblake at redhat.com
Mon Jan 27 20:21:09 UTC 2014


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 at redhat.com>
> ---
>  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140127/0e62bcd5/attachment-0001.sig>


More information about the libvir-list mailing list