sockets: pull code for testing IP availability out of specific test
commit9b589ffb1237ec54f8341d8a80ba77f31d428842
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 22 Dec 2017 11:45:24 +0000 (22 11:45 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 13 Mar 2018 18:06:06 +0000 (13 18:06 +0000)
treec289a96100c3b5956af171401ca6cd37f310fc94
parent473a2a331ee382703f7ca0067ba2545350cfa06c
sockets: pull code for testing IP availability out of specific test

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>
tests/Makefile.include
tests/socket-helpers.c [new file with mode: 0644]
tests/socket-helpers.h [new file with mode: 0644]
tests/test-io-channel-socket.c