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