* [Qemu-devel] [PATCH build-fix] tests/test-qmp-event: fix for GLib < 2.31
@ 2014-06-24 16:03 Paolo Bonzini
2014-06-24 22:24 ` Wenchao Xia
0 siblings, 1 reply; 2+ messages in thread
From: Paolo Bonzini @ 2014-06-24 16:03 UTC (permalink / raw)
To: qemu-devel; +Cc: peter.maydell, wenchaoqemu
On old GLib, the test needs a g_thread_init call.
Reported-by: Wenchao Xia <wenchaoqemu@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
Peter, please apply directly as buildfix.
---
tests/test-qmp-event.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/tests/test-qmp-event.c b/tests/test-qmp-event.c
index cb1e441..17c6444 100644
--- a/tests/test-qmp-event.c
+++ b/tests/test-qmp-event.c
@@ -251,6 +251,7 @@ static void test_event_d(TestEventData *data,
int main(int argc, char **argv)
{
+ g_thread_init(NULL);
qmp_event_set_func_emit(event_test_emit);
g_test_init(&argc, &argv, NULL);
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-24 22:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-24 16:03 [Qemu-devel] [PATCH build-fix] tests/test-qmp-event: fix for GLib < 2.31 Paolo Bonzini
2014-06-24 22:24 ` Wenchao Xia
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).