diff options
author | Juan Quintela <quintela@redhat.com> | 2019-08-19 15:29:58 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2019-09-03 23:24:42 +0200 |
commit | 4e2d8bf6f143138ad121545a7cf4525e36040039 (patch) | |
tree | 52d1502ef57984dbf9fef936d92c76b74f7753f3 /tests | |
parent | e5b6353cf25c99c3f08bf51e29933352f7140e8f (diff) | |
download | qemu-4e2d8bf6f143138ad121545a7cf4525e36040039.zip qemu-4e2d8bf6f143138ad121545a7cf4525e36040039.tar.gz qemu-4e2d8bf6f143138ad121545a7cf4525e36040039.tar.bz2 |
socket: Add num connections to qio_channel_socket_sync()
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-char.c | 4 | ||||
-rw-r--r-- | tests/test-io-channel-socket.c | 2 | ||||
-rw-r--r-- | tests/tpm-emu.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/test-char.c b/tests/test-char.c index b56e43c..f3ebdff 100644 --- a/tests/test-char.c +++ b/tests/test-char.c @@ -667,7 +667,7 @@ char_socket_addr_to_opt_str(SocketAddress *addr, bool fd_pass, char *optstr; g_assert(!reconnect); if (is_listen) { - qio_channel_socket_listen_sync(ioc, addr, &error_abort); + qio_channel_socket_listen_sync(ioc, addr, 1, &error_abort); } else { qio_channel_socket_connect_sync(ioc, addr, &error_abort); } @@ -892,7 +892,7 @@ static void char_socket_client_test(gconstpointer opaque) */ ioc = qio_channel_socket_new(); g_assert_nonnull(ioc); - qio_channel_socket_listen_sync(ioc, config->addr, &error_abort); + qio_channel_socket_listen_sync(ioc, config->addr, 1, &error_abort); addr = qio_channel_socket_get_local_address(ioc, &error_abort); g_assert_nonnull(addr); diff --git a/tests/test-io-channel-socket.c b/tests/test-io-channel-socket.c index d172f30..613ada3 100644 --- a/tests/test-io-channel-socket.c +++ b/tests/test-io-channel-socket.c @@ -57,7 +57,7 @@ static void test_io_channel_setup_sync(SocketAddress *listen_addr, QIOChannelSocket *lioc; lioc = qio_channel_socket_new(); - qio_channel_socket_listen_sync(lioc, listen_addr, &error_abort); + qio_channel_socket_listen_sync(lioc, listen_addr, 1, &error_abort); if (listen_addr->type == SOCKET_ADDRESS_TYPE_INET) { SocketAddress *laddr = qio_channel_socket_get_local_address( diff --git a/tests/tpm-emu.c b/tests/tpm-emu.c index 125e697..c43ac4a 100644 --- a/tests/tpm-emu.c +++ b/tests/tpm-emu.c @@ -76,7 +76,7 @@ void *tpm_emu_ctrl_thread(void *data) QIOChannelSocket *lioc = qio_channel_socket_new(); QIOChannel *ioc; - qio_channel_socket_listen_sync(lioc, s->addr, &error_abort); + qio_channel_socket_listen_sync(lioc, s->addr, 1, &error_abort); g_mutex_lock(&s->data_mutex); s->data_cond_signal = true; |