summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2016-03-08 11:44:26 +0000
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 19:49:36 -0600
commit23e156e6eb996888c3f16f6139bd47fe78f746f1 (patch)
tree9a97276d6a3be6aee1b45fa4f2beac4e25886c0c
parent59b82962f702484d21e6b68bd865b3fb29c0aacc (diff)
downloadhqemu-23e156e6eb996888c3f16f6139bd47fe78f746f1.zip
hqemu-23e156e6eb996888c3f16f6139bd47fe78f746f1.tar.gz
io: initialize sockets in test program
The win32 sockets layer requires that socket_init() is called otherwise nothing will work. Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
-rw-r--r--tests/test-io-channel-socket.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test-io-channel-socket.c b/tests/test-io-channel-socket.c
index 6098fee..f226e47 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);
OpenPOWER on IntegriCloud