Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | sockets: strengthen test suite IP protocol availability checks | Daniel P. Berrange | 2018-03-13 | 1 | -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 test | Daniel P. Berrange | 2018-03-13 | 1 | -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> |