sockets: strengthen test suite IP protocol availability checks
commitabd983c0e0beb4b15326e51a837e1b5177df0e08
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 22 Dec 2017 11:48:49 +0000 (22 11:48 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 13 Mar 2018 18:06:06 +0000 (13 18:06 +0000)
tree6429cda082157e08a23b85e5e835274415f450f6
parent9b589ffb1237ec54f8341d8a80ba77f31d428842
sockets: strengthen test suite IP protocol availability checks

Instead of just checking whether it is possible to bind() on a socket, also
check that we can successfully connect() to the socket we bound to. This
more closely replicates the level of functionality that tests will actually
use.

Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
tests/socket-helpers.c
tests/socket-helpers.h