On old GLib, the test needs a g_thread_init call.

Reported-by: Wenchao Xia <wenchaoq...@gmail.com>
Signed-off-by: Paolo Bonzini <pbonz...@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


Reply via email to