tests: fix test-util-sockets.c
commit8330bd536c809e3c9a07ce9e0de92a4a6509045e
authorYonggang Luo <luoyonggang@gmail.com>
Tue, 15 Sep 2020 12:13:12 +0000 (15 20:13 +0800)
committerThomas Huth <thuth@redhat.com>
Wed, 16 Sep 2020 10:15:07 +0000 (16 12:15 +0200)
tree1d70aab7e9546b27378bc71ee4f5328ffe90d75a
parenta92a783d263ea956d4b45035e224e73852916b7d
tests: fix test-util-sockets.c

Fixes following errors:
Running test test-util-sockets
ERROR test-util-sockets - missing test plan

# Start of name tests
**
ERROR:../tests/test-util-sockets.c:93:test_socket_fd_pass_name_good: assertion failed (fd != -1): (-1 != -1)
Bail out! ERROR:../tests/test-util-sockets.c:93:test_socket_fd_pass_name_good: assertion failed (fd != -1): (-1 != -1)

First should call to qemu_init_main_loop before socket_init,
then on win32 doesn't support for SOCKET_ADDRESS_TYPE_FD socket type

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20200915121318.247-21-luoyonggang@gmail.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/test-util-sockets.c