test: use 'ahost' instead of 'hosts' where applicable
authorFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 5 Mar 2024 17:19:17 +0000 (18:19 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 6 Mar 2024 01:15:30 +0000 (01:15 +0000)
commit4e5a7e19232bb91b0bc4d2c34146245926de9ed4
treecfe61673a52e0c6b029032d98a2e2bb824b50152
parenta850ae7a9c3d394924571b199db4f426517ceb24
test: use 'ahost' instead of 'hosts' where applicable

As explained in [0] the 'hosts' database uses deprecated
gethostbyname2() which uses AF_INET6 instead of AF_UNSPEC for IPv6
lookups which is broken and makes the test fail with disabled IPv6.

[0] https://github.com/systemd/systemd/pull/28136#issuecomment-1974901039
test/units/testsuite-75.sh