Skip to content

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

Merged
oneandonlydean merged 1 commit into
boykopovar:mainfrom
Onny2:test/sce-net-absolute-invalid-name
Oct 12, 2026
Merged

oneandonlydean merged 1 commit into
boykopovar:mainfrom
Onny2:test/sce-net-absolute-invalid-name

Conversation

@Onny2

@Onny2 Onny2 commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

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

guest_sce_net expects sceNetResolverStartNtoa and
sceNetResolverStartNtoaMultipleRecordsEx 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 then succeeds as
guest-sce-net.invalid.<search domain> and the test aborts.

Use the absolute name guest-sce-net.invalid. so the host applies no
search domain and the lookup fails on any network.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@oneandonlydean oneandonlydean self-assigned this Oct 12, 2026
@oneandonlydean
oneandonlydean merged commit 31ade9a into boykopovar:main Oct 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants