]> Git Repo - qemu.git/blobdiff - tests/qom-test.c
tests: virtio-serial: Check if hot-plug/unplug works
[qemu.git] / tests / qom-test.c
index d8d1d8d9ff26e6c02f818b8f6e51d8f9a1ad07ee..4246382d38ff94eb80d464692277c34fb59aad17 100644 (file)
@@ -53,7 +53,7 @@ static void test_properties(const char *path, bool recurse)
 
     g_test_message("Obtaining properties of %s", path);
     response = qmp("{ 'execute': 'qom-list',"
-                   "  'arguments': { 'path': '%s' } }", path);
+                   "  'arguments': { 'path': %s } }", path);
     g_assert(response);
 
     if (!recurse) {
@@ -76,8 +76,8 @@ static void test_properties(const char *path, bool recurse)
             const char *prop = qdict_get_str(tuple, "name");
             g_test_message("Testing property %s.%s", path, prop);
             response = qmp("{ 'execute': 'qom-get',"
-                           "  'arguments': { 'path': '%s',"
-                           "                 'property': '%s' } }",
+                           "  'arguments': { 'path': %s,"
+                           "                 'property': %s } }",
                            path, prop);
             /* qom-get may fail but should not, e.g., segfault. */
             g_assert(response);
This page took 0.020526 seconds and 4 git commands to generate.