[PATCH] resolv: Add test for getaddrinfo returning EAI_AGAIN on DNS failure
Florian Weimer
fweimer@redhat.com
Wed Sep 17 09:20:44 GMT 2025
* H. J. Lu:
> On Tue, Sep 16, 2025 at 12:43 PM Sergey Kolosov <skolosov@redhat.com> wrote:
>>
>> Test for BZ #16849. This test verifies that getaddrinfo correctly
>> returns the EAI_AGAIN error code when DNS queries fail due to a network
>> failure. The test queries with AF_INET, AF_INET6, AF_UNSPEC address
>> families and expects getaddrinfo to return EAI_AGAIN in each case.
>> ---
>> To validate the test, I manually reverted the fix for BZ #16849 in
>> nss/getaddrinfo.c, specifically the condition:
>
> Is it possible to write a container test with network/DNS disabled?
It is, but it would test something else (ICMP error from unreachable UDP
port). It could still be a useful additional test.
Thanks,
Florian
More information about the Libc-alpha
mailing list