vhost-user-test: fix crash with glib < 2.36
commit45ce512670f34d10be34448e621fd1484bea0ec6
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 30 Nov 2015 16:44:49 +0000 (30 17:44 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 2 Dec 2015 14:42:26 +0000 (2 16:42 +0200)
treef62490c13673a5a7399db5dc21ebc6a6fa878cc1
parenta899b1ea2a6d6baa18f1c12da566aad35cb0d807
vhost-user-test: fix crash with glib < 2.36

The prepare callback needs to be implemented with glib < 2.36,
quoting glib documentation:
"Since 2.36 this may be NULL, in which case the effect is as if the
function always returns FALSE with a timeout of -1."

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