diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2016-03-08 11:44:26 +0000 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2016-03-10 17:10:18 +0000 |
commit | 5838d66e73ac50c5547796afe1e86aa204b77fea (patch) | |
tree | a3befbfb06da745402e70eb2dbc24eeda57b4f9d /tests | |
parent | 0a27af918b9cfb7fc1605c66dfc70700be16fab5 (diff) |
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>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-io-channel-socket.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |