From 3625f3cfd1cb1b310209205440f650f900668d50 Mon Sep 17 00:00:00 2001 From: Frediano Ziglio Date: Tue, 9 Jan 2018 07:41:41 +0000 Subject: [PATCH] basic-event-loop: Document why code does not use default GLib context Signed-off-by: Frediano Ziglio Acked-by: Christophe Fergeau --- server/tests/basic-event-loop.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/tests/basic-event-loop.c b/server/tests/basic-event-loop.c index 6fd8a293..b10ac946 100644 --- a/server/tests/basic-event-loop.c +++ b/server/tests/basic-event-loop.c @@ -130,6 +130,9 @@ SpiceCoreInterface *basic_event_loop_init(void) { ignore_sigpipe(); spice_assert(main_context == NULL); + /* Qemu can use a context which is not the default one so to make + * sure we can handle this condition here we emulate it so don't + * use g_main_context_default */ main_context = g_main_context_new(); base_core_interface = event_loop_core; base_core_interface.main_context = main_context;