Skip to contentSkip to conversation

tests/test-qmp-event: fix for GLib < 2.31

PATCH In review Paolo Bonzini 2 participants 2 messages Jun 24, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/test-qmp-event: fix for GLib < 2.31

On old GLib, the test needs a g_thread_init call.

---
Peter, please apply directly as buildfix.

---
 tests/test-qmp-event.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
tests/test-qmp-event.c +1 -0
index cb1e441..17c6444 100644
@@ -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);
Signature · 1 line
1.7.1