[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 16/21] tests: add alias check in /char/ringbuf
From: |
Marc-André Lureau |
Subject: |
[Qemu-devel] [PATCH v3 16/21] tests: add alias check in /char/ringbuf |
Date: |
Thu, 16 Mar 2017 13:21:16 +0400 |
Signed-off-by: Marc-André Lureau <address@hidden>
---
tests/test-char.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/tests/test-char.c b/tests/test-char.c
index 71de4b35ee..2811644bcd 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);
object_unparent(OBJECT(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);
+ object_unparent(OBJECT(chr));
+ qemu_opts_del(opts);
}
static void char_mux_test(void)
--
2.12.0.191.gc5d8de91d
- [Qemu-devel] [PATCH v3 06/21] vl: add todo note about root container cleanup, (continued)
- [Qemu-devel] [PATCH v3 06/21] vl: add todo note about root container cleanup, Marc-André Lureau, 2017/03/16
- [Qemu-devel] [PATCH v3 07/21] char: use /chardevs container instead of chardevs list, Marc-André Lureau, 2017/03/16
- [Qemu-devel] [PATCH v3 08/21] char: remove qemu_chardev_add, Marc-André Lureau, 2017/03/16
- [Qemu-devel] [PATCH v3 09/21] char: remove chardevs list, Marc-André Lureau, 2017/03/16
- [Qemu-devel] [PATCH v3 10/21] char: useless NULL check, Marc-André Lureau, 2017/03/16
- [Qemu-devel] [PATCH v3 12/21] char-socket: update local address after listen, Marc-André Lureau, 2017/03/16
- [Qemu-devel] [PATCH v3 11/21] char-socket: introduce update_disconnected_filename(), Marc-André Lureau, 2017/03/16
- [Qemu-devel] [PATCH v3 13/21] char-socket: add 'addr' property, Marc-André Lureau, 2017/03/16
- [Qemu-devel] [PATCH v3 14/21] char-socket: add 'connected' property, Marc-André Lureau, 2017/03/16
- [Qemu-devel] [PATCH v3 15/21] char-udp: flush as much buffer as possible, Marc-André Lureau, 2017/03/16
- [Qemu-devel] [PATCH v3 16/21] tests: add alias check in /char/ringbuf,
Marc-André Lureau <=
- [Qemu-devel] [PATCH v3 17/21] tests: add /char/pipe test, Marc-André Lureau, 2017/03/16
- [Qemu-devel] [PATCH v3 18/21] tests: add /char/file test, Marc-André Lureau, 2017/03/16
- [Qemu-devel] [PATCH v3 19/21] tests: add /char/socket test, Marc-André Lureau, 2017/03/16
- [Qemu-devel] [PATCH v3 20/21] tests: add /char/udp test, Marc-André Lureau, 2017/03/16
- [Qemu-devel] [PATCH v3 21/21] tests: add /char/console test, Marc-André Lureau, 2017/03/16