[libvirt] [PATCH 2/4] tests: Introduce virnetdevbandwidthtest

Eric Blake eblake at redhat.com
Fri Jan 24 21:53:30 UTC 2014


On 01/23/2014 06:44 AM, Michal Privoznik wrote:
> The only API tested so far would be virNetDevBandwidthMinimal.
> But there's more to come!
> 
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
>  tests/Makefile.am              |   5 ++
>  tests/virnetdevbandwidthtest.c | 155 +++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 160 insertions(+)
>  create mode 100644 tests/virnetdevbandwidthtest.c
> 

> +
> +#define PARSE(xml, var)                                                 \
> +    do {                                                                \
> +        xmlDocPtr doc;                                                  \
> +        xmlXPathContextPtr ctxt = NULL;                                 \
> +                                                                        \
> +        if (!xml)                                                       \
> +            break;                                                      \
> +                                                                        \
> +        if (!(doc = virXMLParseStringCtxt((xml),                        \

The () around xml is redundant here, but doesn't hurt to leave it in.

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/20140124/54a13fb1/attachment-0001.sig>


More information about the libvir-list mailing list