From: Daniel P. Berrange Date: Tue, 8 Mar 2016 11:44:26 +0000 (+0000) Subject: io: initialize sockets in test program X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.2~30^2~6^2~8^2~126^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5838d66e73ac50c5547796afe1e86aa204b77fea;p=sdk%2Femulator%2Fqemu.git io: initialize sockets in test program The win32 sockets layer requires that socket_init() is called otherwise nothing will work. Reviewed-by: Paolo Bonzini Signed-off-by: Daniel P. Berrange --- diff --git a/tests/test-io-channel-socket.c b/tests/test-io-channel-socket.c index 6098fee9c2..f226e475c6 100644 --- a/tests/test-io-channel-socket.c +++ b/tests/test-io-channel-socket.c @@ -489,6 +489,7 @@ int main(int argc, char **argv) bool has_ipv4, has_ipv6; module_call_init(MODULE_INIT_QOM); + socket_init(); g_test_init(&argc, &argv, NULL);