tests/test-qmp-event: fix for GLib < 2.31
PATCH 1/1 tests/test-qmp-event: fix for GLib < 2.31
On old GLib, the test needs a g_thread_init call.
Reported-by Wenchao Xia <[email protected]>
Signed-off-by Paolo Bonzini <[email protected]>
---
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
@@ -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
Tested-by Wenchao Xia <[email protected]>