test(net): skip only the IPv6 socket checks on a host without IPv6 #2251

Merged
zmeizy merged 1 commit from upstream-pr/2251 into main 2026-10-09 21:46:44 +00:00
zmeizy commented 2026-10-09 13:11:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by zmeizy on 2026-10-09T13:11:28Z.


What

On a host whose kernel has no IPv6, socket(AF_INET6) fails with EAFNOSUPPORT, so guest_sce_net aborted at its first IPv6 socket in CheckUnspecifiedIpv6 and never ran the TCP, UDP, epoll, sceNetSendmsg/sceNetRecvmsg, resolver and NetCtl checks after it.

When sceNetSocket reports guest EAFNOSUPPORT (47) for the IPv6 socket, the test now skips those IPv6 socket checks, runs the rest, and exits with 77, which ctest reports as skipped (SKIP_RETURN_CODE 77, as guest_video_out_wqhd_detection does). The IPv6 address-text checks still run. Hosts with IPv6 run every check as before.

Tested

Ubuntu 24.04 container whose kernel has no IPv6 (/proc/net/if_inet6 absent): before, guest_sce_net aborted (Subprocess aborted); after, every other check runs and passes and ctest reports it as Skipped. The IPv6 path cannot be run there; on a host with IPv6 the added branch is not taken, so CI runs the same checks as before. Full ctest --parallel 4 --timeout 120 on d70b8998 with this change and the two other fixes applied: 513 tests, 0 failures.

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 (n/a)
  • 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 (n/a)
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes

🤖 Generated with Claude Code

https://claude.ai/code/session_01Ha6Tsy62AFUyp9a5Mf7vjA

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4800870676 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2251). Originally posted by [zmeizy](https://github.com/zmeizy) on 2026-10-09T13:11:28Z. --- ### What On a host whose kernel has no IPv6, `socket(AF_INET6)` fails with `EAFNOSUPPORT`, so `guest_sce_net` aborted at its first IPv6 socket in `CheckUnspecifiedIpv6` and never ran the TCP, UDP, epoll, `sceNetSendmsg`/`sceNetRecvmsg`, resolver and NetCtl checks after it. When `sceNetSocket` reports guest `EAFNOSUPPORT` (47) for the IPv6 socket, the test now skips those IPv6 socket checks, runs the rest, and exits with 77, which ctest reports as skipped (`SKIP_RETURN_CODE 77`, as `guest_video_out_wqhd_detection` does). The IPv6 address-text checks still run. Hosts with IPv6 run every check as before. ### Tested Ubuntu 24.04 container whose kernel has no IPv6 (`/proc/net/if_inet6` absent): before, `guest_sce_net` aborted (Subprocess aborted); after, every other check runs and passes and ctest reports it as Skipped. The IPv6 path cannot be run there; on a host with IPv6 the added branch is not taken, so CI runs the same checks as before. Full `ctest --parallel 4 --timeout 120` on `d70b8998` with this change and the two other fixes applied: 513 tests, 0 failures. ### Checklist - [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 - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed in TechnicalDebt (n/a) - [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 (n/a) - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Ha6Tsy62AFUyp9a5Mf7vjA
MarcZX10 commented 2026-10-09 13:13:42 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-09T13:13:42Z.

Review: APPROVED


Reviewed the full diff and reran Conventions on the exact head. The skip is limited to the IPv6 socket checks after guest EAFNOSUPPORT (47); IPv6 address text checks and the remaining IPv4, TCP, UDP, resolver, epoll, message, and NetCtl checks still execute. CTest maps only this test's 77 exit to skipped. The PR reports a full 513-test run with this change applied and a reproduction on a host without IPv6. No blocking issues found.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5470486496 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2251#pullrequestreview-5470486496). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-09T13:13:42Z. **Review:** APPROVED --- Reviewed the full diff and reran Conventions on the exact head. The skip is limited to the IPv6 socket checks after guest EAFNOSUPPORT (47); IPv6 address text checks and the remaining IPv4, TCP, UDP, resolver, epoll, message, and NetCtl checks still execute. CTest maps only this test's 77 exit to skipped. The PR reports a full 513-test run with this change applied and a reproduction on a host without IPv6. No blocking issues found.
popcoder565 commented 2026-10-09 15:47:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by popcoder565 on 2026-10-09T15:47:22Z.


Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head 4a2769f2, merged onto main d70b8998 in one build with 38 other PRs that had no Windows run.

  • This PR's tests pass: guest_sce_net. None of them reported skipping a case.
  • Full ctest in that build: 519 of 519. That needed local fixes to three other PRs in the batch that don't build or pass on Windows: #1611, #1796 and #1824 (reported there).

No title was run.

🤖 Addressed by Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6084286685 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2251#issuecomment-6084286685). Originally posted by [popcoder565](https://github.com/popcoder565) on 2026-10-09T15:47:22Z. --- Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head `4a2769f2`, merged onto `main` d70b8998 in one build with 38 other PRs that had no Windows run. - This PR's tests pass: `guest_sce_net`. None of them reported skipping a case. - Full ctest in that build: 519 of 519. That needed local fixes to three other PRs in the batch that don't build or pass on Windows: #1611, #1796 and #1824 (reported there). No title was run. _🤖 Addressed by [Claude Code](https://claude.com/claude-code)_
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!2251
No description provided.