]> Git Repo - qemu.git/blobdiff - tests/qmp-test.c
tests/migration: Add source to PC boot block
[qemu.git] / tests / qmp-test.c
index c5a5c10b417b077c4c275eb20559ea2ae9112baa..908f9b981f6e4dca105a403c65a1727dbeda91fb 100644 (file)
@@ -14,6 +14,8 @@
 #include "libqtest.h"
 #include "qapi-visit.h"
 #include "qapi/error.h"
+#include "qapi/qmp/qdict.h"
+#include "qapi/qmp/qlist.h"
 #include "qapi/qobject-input-visitor.h"
 #include "qapi/util.h"
 #include "qapi/visitor.h"
@@ -271,7 +273,7 @@ static void add_query_tests(QmpSchema *schema)
 {
     SchemaInfoList *tail;
     SchemaInfo *si, *arg_type, *ret_type;
-    const char *test_name;
+    char *test_name;
 
     /* Test the query-like commands */
     for (tail = schema->list; tail; tail = tail->next) {
@@ -297,6 +299,7 @@ static void add_query_tests(QmpSchema *schema)
 
         test_name = g_strdup_printf("qmp/%s", si->name);
         qtest_add_data_func(test_name, si->name, test_query);
+        g_free(test_name);
     }
 }
 
This page took 0.027376 seconds and 4 git commands to generate.