test(libSceNet): accept every unusable IPv6 loopback error in guest_sce_net #7987
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7987"
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 MarrasFederico on 2026-10-19T17:06:13Z.
What
guest_sce_netaborts inCheckUnspecifiedIpv6on a Linux host whose kernel has IPv6 but where::1is unusable. The test skips its IPv6 checks whensceNetSendtoto::1fails andHostIpv6LoopbackUnavailableconfirms the host cannot reach::1. The host probe acceptsEADDRNOTAVAIL,ENETUNREACHandEHOSTUNREACH, but the guest check accepted onlyENETUNREACH(51). On the same machine, which has no IPv6 address or route, the hostsendtoto::1failed withENETUNREACHearlier in the day and withEADDRNOTAVAILlater (strace:sendto(..., inet_pton(AF_INET6, "::1", ...)) = -1 EADDRNOTAVAIL), with no change to the code in between. The guest then sees 49, the skip is not taken andRequire(sent == sizeof(payload))aborts.The guest check now accepts the FreeBSD numbers of the same three errors the host probe accepts: 49, 51 and 65. Hosts with a usable
::1still run every IPv6 check.Same host condition as the merged #7847 (
guest_datagram_*) and the closed #2820 (guest_sce_net), in a different test.Tested
Ubuntu 26.04.1, kernel 7.0.0-38, GCC 15.2.0, Release, full build with
BUILD_TESTING=ON.net.ipv6.conf.lo.disable_ipv6=1and no IPv6 route:mainaborts (exit 134,gdbstops inCheckUnspecifiedIpv6); with this change it skips (exit 77,Skippedin ctest).lo(unshare -rn,::1assigned): passes (exit 0), andstraceshows the IPv6 sends to::1succeed, so the IPv6 checks still run.lo: skips (exit 77).tools/check_conventions.py --base origin/mainpasses.tools/pr_overlap.pylists #5836, #6044 and #7332 as touchingGuestSceNet.cpp; none of them changes this line.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T17:33:24Z.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/tests/GuestSceNet.cppcore/libs/tests/GuestSceNet.cppcore/libs/tests/GuestSceNet.cppcore/libs/tests/GuestSceNet.cpp