vhost-user-test: extract read-guest-mem test from main loop
commite364c7037c9448b88ef39849d2008825c45cc04c
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Thu, 21 Dec 2017 21:21:22 +0000 (21 22:21 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 18 Jan 2018 19:52:38 +0000 (18 21:52 +0200)
treea17ac58af798c0372143b6db601dc213b567e588
parent0d85e7d99a099b84181ee8c00b80ee6148866f9b
vhost-user-test: extract read-guest-mem test from main loop

This patch makes read-guest-test consistent with other tests,
i.e. create the test server in the test function.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tests/vhost-user-test.c