test(net): look up the unresolvable name as an absolute name #4406
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4406"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by Onny2 on 2026-10-12T09:36:25Z.
What
guest_sce_netexpects the resolver to fail forguest-sce-net.invalid. The resolver delegates to the host'sgetaddrinfo, which retries a name that is not found with the host's DNS search domains. On an ordinary home network whose router sets a search domain that answers any name, the lookup succeeds asguest-sce-net.invalid.<search domain>and the test aborts atGuestSceNet.cpp:515.The test now uses the absolute name
guest-sce-net.invalid., so the host applies no search domain and the lookup fails on any network. Like #2894, this makes the test independent of the host network; the resolver is unchanged.Note for #3728: it adds another lookup of
guest-sce-net.invalidand would need the same trailing dot.Tested
Debian 13, GCC 14.2, Release, on an ordinary home network whose router sets such a search domain:
guest_sce_netaborts onmainand passes with this change.getent hosts guest-sce-net.invalidresolves there through the search domain, whilegetent hosts guest-sce-net.invalid.fails.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)