test(net): look up the unresolvable name as an absolute name #4406

Merged
Onny2 merged 1 commit from upstream-pr/4406 into main 2026-10-12 18:23:35 +00:00
Onny2 commented 2026-10-12 09:36:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Onny2 on 2026-10-12T09:36:25Z.


What

guest_sce_net expects the resolver to fail for guest-sce-net.invalid. The resolver delegates to the host's getaddrinfo, 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 as guest-sce-net.invalid.<search domain> and the test aborts at GuestSceNet.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.invalid and 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_net aborts on main and passes with this change. getent hosts guest-sce-net.invalid resolves there through the search domain, while getent hosts guest-sce-net.invalid. fails.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4827560730 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4406). Originally posted by [Onny2](https://github.com/Onny2) on 2026-10-12T09:36:25Z. --- ### What `guest_sce_net` expects the resolver to fail for `guest-sce-net.invalid`. The resolver delegates to the host's `getaddrinfo`, 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 as `guest-sce-net.invalid.<search domain>` and the test aborts at `GuestSceNet.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.invalid` and 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_net` aborts on `main` and passes with this change. `getent hosts guest-sce-net.invalid` resolves there through the search domain, while `getent hosts guest-sce-net.invalid.` fails. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: none - [x] AI-assisted: yes
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!4406
No description provided.