summaryrefslogtreecommitdiffstats
path: root/tests/socket-helpers.c
Commit message (Collapse)AuthorAgeFilesLines
* sockets: strengthen test suite IP protocol availability checksDaniel P. Berrange2018-03-131-9/+58
| | | | | | | | | | | 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>
* sockets: pull code for testing IP availability out of specific testDaniel P. Berrange2018-03-131-0/+100
The test-io-channel-socket.c file has some useful helper functions for checking if a specific IP protocol is available. Other tests need to perform similar kinds of checks to avoid running tests that will fail due to missing IP protocols. 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>