Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
tests/test-char.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/tests/test-char.c b/tests/test-char.c
index da69f110e4..aa9b18a61b 100644
--- a/tests/test-char.c
+++ b/tests/test-char.c
@@ -104,6 +104,16 @@ static void char_ringbuf_test(void)
qemu_chr_fe_deinit(&be);
qemu_chr_delete(chr);
+
+ /* check alias */
+ opts = qemu_opts_create(qemu_find_opts("chardev"), "memory-label",
+ 1, &error_abort);
+ qemu_opt_set(opts, "backend", "memory", &error_abort);
+ qemu_opt_set(opts, "size", "2", &error_abort);
+ chr = qemu_chr_new_from_opts(opts, NULL);
+ g_assert_nonnull(chr);
+ qemu_chr_delete(chr);
+ qemu_opts_del(opts);
}
static void char_mux_test(void)
--
2.11.0.295.gd7dffce1c.dirty