summaryrefslogtreecommitdiffstats
path: root/tests/socket-helpers.h
Commit message (Collapse)AuthorAgeFilesLines
* tests: specify the address family when checking bindMarc-André Lureau2019-08-221-11/+0Star
| | | | | | | | | getaddrinfo() may succeed with PF_UNSPEC, but fail when more specific. (this allows to skip some tests that would fail under podman) Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
* Supply missing header guardsMarkus Armbruster2019-06-121-1/+5
| | | | | Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20190604181618.19980-5-armbru@redhat.com>
* sockets: strengthen test suite IP protocol availability checksDaniel P. Berrange2018-03-131-2/+2
| | | | | | | | | | | 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/+42
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>