qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] tests/socket-helpers: Treat EAI_NONAME as EADDRNOTAVAIL


From: Daniel P . Berrangé
Subject: Re: [PATCH] tests/socket-helpers: Treat EAI_NONAME as EADDRNOTAVAIL
Date: Wed, 9 Sep 2020 10:57:18 +0100
User-agent: Mutt/1.14.6 (2020-07-11)

On Tue, Sep 08, 2020 at 02:15:43PM +0200, Thomas Huth wrote:
> The tests/test-char test is currently always failing on my system since
> the getaddrinfo() in socket_can_bind_connect() returns EAI_NONAME when
> it is called from socket_check_protocol_support() to check for IPv6.
> socket_check_protocol_support() then returns -1 and thus the tests are
> not run at all - even though IPv4 is working fine.
> socket_can_bind_connect() connect should return EADDRNOTAVAIL in this
> case instead, so that socket_check_protocol_support() does not fail.
> 
> Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
>  tests/socket-helpers.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




reply via email to

[Prev in Thread] Current Thread [Next in Thread]