]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuxml2xmltest.c: honor ARG_PARSEFLAGS
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Wed, 18 Nov 2020 16:28:09 +0000 (13:28 -0300)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Thu, 3 Dec 2020 20:20:16 +0000 (17:20 -0300)
At this moment,  it is not possible to create a test specifying
ARG_PARSEFLAGS because info->parseFlags is not being forwarded to
testCompareDomXML2XMLFiles(). Let's fix it now so next patch can
make use of it.

Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
tests/qemuxml2xmltest.c

index c006719dee973eb23789b0db37e346a1bdbfce5f..603ba7168638dff061d80901b8628de6fa803abc 100644 (file)
@@ -32,7 +32,8 @@ testXML2XMLActive(const void *opaque)
     const struct testQemuInfo *info = opaque;
 
     return testCompareDomXML2XMLFiles(driver.caps, driver.xmlopt,
-                                      info->infile, info->outfile, true, 0,
+                                      info->infile, info->outfile, true,
+                                      info->parseFlags,
                                       TEST_COMPARE_DOM_XML2XML_RESULT_SUCCESS);
 }
 
@@ -43,7 +44,8 @@ testXML2XMLInactive(const void *opaque)
     const struct testQemuInfo *info = opaque;
 
     return testCompareDomXML2XMLFiles(driver.caps, driver.xmlopt,
-                                      info->infile, info->outfile, false, 0,
+                                      info->infile, info->outfile, false,
+                                      info->parseFlags,
                                       TEST_COMPARE_DOM_XML2XML_RESULT_SUCCESS);
 }