[libvirt] [PATCH] tests: Improve IPv6 detection for virNetSocket tests

Eric Blake eblake at redhat.com
Fri Jun 24 15:53:58 UTC 2011


On 06/24/2011 09:39 AM, Matthias Bolte wrote:
> getifaddrs can return an IPv6 address, but getaddrinfo can fail
> for an IPv6 address. Cover this combination.
> ---
> 
> This is only tested on my system with broken IPv6. Could someone test this
> on an IPv6 capable system and ensure that the IPv6 tests aren't skipped now
> by running
> 
>   cd tests
>   make virnetsockettest
>   PATH=`pwd`:$PATH LIBVIRT_DEBUG=1 ./virnetsockettest
> 
> This should print something like this
> 
>   17:35:09.810: 4102: debug : checkProtocols:83 : Protocols: v4 1 v6 1
> 
> on an IPv6 capable system.

Done, and worked for me.

ACK to the patch.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110624/a4c2d2b9/attachment-0001.sig>


More information about the libvir-list mailing list