From 2bb8b83765986f4cd2d7413dc22bb0e4dafe6d40 Mon Sep 17 00:00:00 2001 From: Onny2 <53873673+Onny2@users.noreply.github.com> Date: Mon, 12 Oct 2026 11:05:39 +0200 Subject: [PATCH] test(net): look up the unresolvable name as an absolute name 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. 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 --- core/libs/tests/GuestSceNet.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/libs/tests/GuestSceNet.cpp b/core/libs/tests/GuestSceNet.cpp index 993e40205..0be6c799c 100644 --- a/core/libs/tests/GuestSceNet.cpp +++ b/core/libs/tests/GuestSceNet.cpp @@ -512,7 +512,7 @@ int main() { int resolver_error = -1; Require(sceNetResolverGetError(resolver, &resolver_error) == 0 && resolver_error == 0); std::array ipv4{}; - Require(sceNetResolverStartNtoa(resolver, "guest-sce-net.invalid", ipv4.data(), 5000000, 1, 0) == + Require(sceNetResolverStartNtoa(resolver, "guest-sce-net.invalid.", ipv4.data(), 5000000, 1, 0) == static_cast(0x804101E1)); Require(sceNetResolverGetError(resolver, &resolver_error) == 0 && resolver_error == static_cast(0x804101E1)); @@ -545,7 +545,7 @@ int main() { static_cast(0x80410116) && *sceNetErrnoLoc() == 22 && records == resolved); Require(sceNetResolverStartNtoaMultipleRecordsEx(resolver, "localhost", nullptr, 5000000, 1, 0) == static_cast(0x80410116) && *sceNetErrnoLoc() == 22); - Require(sceNetResolverStartNtoaMultipleRecordsEx(resolver, "guest-sce-net.invalid", records.data(), 5000000, 1, 0) == + Require(sceNetResolverStartNtoaMultipleRecordsEx(resolver, "guest-sce-net.invalid.", records.data(), 5000000, 1, 0) == static_cast(0x804101E1) && records == resolved); Require(sceNetResolverGetError(resolver, nullptr) == static_cast(0x80410116) && *sceNetErrnoLoc() == 22); Require(sceNetResolverDestroy(resolver) == 0);