[PATCH 46/51] qemustatusxml2xmltest: Remove capabilities infrastructure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The status XML doesn't require any capabilities to be parsed and
formatted back. Remove all qemuCaps related code.

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 tests/qemustatusxml2xmltest.c | 17 ++---------------
 1 file changed, 2 insertions(+), 15 deletions(-)

diff --git a/tests/qemustatusxml2xmltest.c b/tests/qemustatusxml2xmltest.c
index c689ab3b03..418a724b94 100644
--- a/tests/qemustatusxml2xmltest.c
+++ b/tests/qemustatusxml2xmltest.c
@@ -23,13 +23,7 @@ testCompareStatusXMLToXMLFiles(const void *opaque)
     g_autofree char *actual = NULL;
     int ret = -1;

-    if (testQemuInfoInitArgs((struct testQemuInfo *) data) < 0)
-        return -1;
-
-    virFileCacheClear(driver.qemuCapsCache);
-
-    if (qemuTestCapsCacheInsert(driver.qemuCapsCache, data->qemuCaps) < 0)
-        return -1;
+    /* this test suite doesn't yet need testQemuInfoInitArgs() */

     if (!(obj = virDomainObjParseFile(data->infile, driver.xmlopt,
                                       VIR_DOMAIN_DEF_PARSE_STATUS |
@@ -76,15 +70,8 @@ static int
 mymain(void)
 {
     int ret = 0;
-    g_autoptr(GHashTable) capslatest = testQemuGetLatestCaps();
-    g_autoptr(GHashTable) capscache = virHashNew(virObjectUnref);
     g_autoptr(virConnect) conn = NULL;
-    struct testQemuConf testConf = { .capslatest = capslatest,
-                                     .capscache = capscache,
-                                     .qapiSchemaCache = NULL };
-
-    if (!capslatest)
-        return EXIT_FAILURE;
+    struct testQemuConf testConf = { NULL, NULL, NULL };

     if (qemuTestDriverInit(&driver) < 0)
         return EXIT_FAILURE;
-- 
2.41.0




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux