diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2017-12-22 11:48:49 +0000 |
---|---|---|
committer | Daniel P. Berrangé <berrange@redhat.com> | 2018-03-13 18:06:06 +0000 |
commit | abd983c0e0beb4b15326e51a837e1b5177df0e08 (patch) | |
tree | 6429cda082157e08a23b85e5e835274415f450f6 /tests/test-util-sockets.c | |
parent | 9b589ffb1237ec54f8341d8a80ba77f31d428842 (diff) |
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>
Diffstat (limited to 'tests/test-util-sockets.c')
0 files changed, 0 insertions, 0 deletions