tests: specify the address family when checking bind
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 9 Jul 2019 14:12:28 +0000 (18:12 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 22 Aug 2019 13:30:25 +0000 (17:30 +0400)
commit71714178fa35dff1b9afc0762501c81360f7db82
treee1a969a1b3e395b6b914f635e0e1a3c4a74cd147
parent05af039d1e0baec1e1577701ec8309313f832f06
tests: specify the address family when checking bind

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>
tests/socket-helpers.c
tests/socket-helpers.h