diff options
| author | Daniel P. Berrange | 2016-03-08 12:44:26 +0100 |
|---|---|---|
| committer | Daniel P. Berrange | 2016-03-10 18:10:18 +0100 |
| commit | 5838d66e73ac50c5547796afe1e86aa204b77fea (patch) | |
| tree | a3befbfb06da745402e70eb2dbc24eeda57b4f9d /tests | |
| parent | io: use bind() to check for IPv4/6 availability (diff) | |
| download | qemu-5838d66e73ac50c5547796afe1e86aa204b77fea.tar.gz qemu-5838d66e73ac50c5547796afe1e86aa204b77fea.tar.xz qemu-5838d66e73ac50c5547796afe1e86aa204b77fea.zip | |
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); |
