]> Git Repo - qemu.git/blobdiff - tests/test-qemu-opts.c
iotests: Add preallocated growth test for qcow2
[qemu.git] / tests / test-qemu-opts.c
index 0ad74b464f2b6c50c6a377c777e1c01936237f6f..cc1bb1afdfd18c2dbc879f94bb0c177e093f8956 100644 (file)
@@ -299,7 +299,7 @@ static void test_qemu_opt_get_size(void)
     dict = qdict_new();
     g_assert(dict != NULL);
 
-    qdict_put(dict, "size1", qstring_from_str("10"));
+    qdict_put_str(dict, "size1", "10");
 
     qemu_opts_absorb_qdict(opts, dict, &error_abort);
     g_assert(error_abort == NULL);
@@ -309,7 +309,7 @@ static void test_qemu_opt_get_size(void)
     g_assert(opt == 10);
 
     /* reset value */
-    qdict_put(dict, "size1", qstring_from_str("15"));
+    qdict_put_str(dict, "size1", "15");
 
     qemu_opts_absorb_qdict(opts, dict, &error_abort);
     g_assert(error_abort == NULL);
This page took 0.022577 seconds and 4 git commands to generate.