Bruno Haible via Gnulib discussion list <bug-gnulib@gnu.org> writes: >> 2025-02-17 Bruno Haible <br...@clisp.org> >> >> getaddrinfo tests: Make failures more verbose. >> * tests/test-getaddrinfo.c (simple): Print some info before returning 1. > > Now the test failure produces this info: > > FAIL: test-getaddrinfo > ====================== > > Test case pass=3, host=www.gnu.org, service=http failed: expected EAI_NONAME, > got -8 > Test case pass=3, host=www.ibm.com, service=https failed: expected > EAI_NONAME, got -8 > Test case pass=3, host=microsoft.com, service=http failed: expected > EAI_NONAME, got -8 > Test case pass=3, host=google.org, service=ldap failed: expected EAI_NONAME, > got -8 > FAIL test-getaddrinfo (exit status: 4) > > Where -8 is EAI_SERVICE. This is on a Debian 12 system. > > This failure makes no sense to me. Any idea?
Is there a /etc/services file? Sometimes that file is not installed (it is in the 'netbase' package), and a lot of things break in weirds way related to service name lookups. It would be nice to separate failures due to missing service names from other failures in getaddrinfo(), but it can get a bit complex. /Simon
signature.asc
Description: PGP signature