]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
bhyve: fix build in tests
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Thu, 23 Apr 2015 06:25:11 +0000 (10:25 +0400)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Thu, 23 Apr 2015 06:54:32 +0000 (10:54 +0400)
Commit 835cf84 dropped expectedVirtTypes argument for
virDomainDefParse*() functions, however bhyve tests still try to pass
that to virDomainDefParseFile(), therefore build fails.

Fix build by fixing virDomainDefParseFile() usage.

tests/bhyvexml2argvtest.c
tests/bhyvexml2xmltest.c

index c5b068141d3e39c6526790a19fbb3e9989f237bd..26d00750fb96e448e6a0e0e992b699c0a9d86ca9 100644 (file)
@@ -32,7 +32,6 @@ static int testCompareXMLToArgvFiles(const char *xml,
         goto out;
 
     if (!(vmdef = virDomainDefParseFile(xml, driver.caps, driver.xmlopt,
-                                        1 << VIR_DOMAIN_VIRT_BHYVE,
                                         VIR_DOMAIN_DEF_PARSE_INACTIVE)))
         goto out;
 
index a1a370174594a9847cabea4df13a68cbaef24437..2e742cf690a77c1185d76d139f33de4053c25409 100644 (file)
@@ -27,7 +27,6 @@ testCompareXMLToXMLFiles(const char *inxml, const char *outxml)
         goto fail;
 
     if (!(def = virDomainDefParseString(inXmlData, driver.caps, driver.xmlopt,
-                                        1 << VIR_DOMAIN_VIRT_BHYVE,
                                         VIR_DOMAIN_DEF_PARSE_INACTIVE)))
         goto fail;