libqtest: add qtest_socket_server()
commit9fb7bb06986741b7fd8427fac9f22177ca38dcff
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 23 Feb 2021 14:46:43 +0000 (23 14:46 +0000)
committerKevin Wolf <kwolf@redhat.com>
Mon, 8 Mar 2021 13:55:19 +0000 (8 14:55 +0100)
tree59817ff3c74fb8d1daa6239a5a05695a0722a7dc
parent535255b43898d2e96744057eb86f8497d4d7a461
libqtest: add qtest_socket_server()

Add an API that returns a new UNIX domain socket in the listen state.
The code for this was already there but only used internally in
init_socket().

This new API will be used by vhost-user-blk-test.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Message-Id: <20210223144653.811468-3-stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qtest/libqos/libqtest.h
tests/qtest/libqtest.c