test(libkernel): drop the macOS kqueue check that a pipe write end refuses EVFILT_WRITE #19490

Merged
imellag merged 1 commit from upstream-pr/19490 into main 2026-11-13 14:44:00 +00:00
imellag commented 2026-11-13 12:16:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by imellag on 2026-11-13T12:16:11Z.


What

guest_kqueue fails on macOS at GuestKqueue.cpp:1416: a macOS-only check requires that adding EVFILT_WRITE on the write end of a pipe throws. 53f80d22f6 (feat(libkernel): support macOS pipe write readiness) made that registration work on macOS and updated the debt entry ("on macOS EVFILT_WRITE on an anonymous pipe reads the free space from a zero-timeout private kqueue"), but left this check, so it now fails on every macOS run.

The check is removed. The supported case is already covered on every host by PipeWrite() in the same test, which registers EVFILT_WRITE on a pipe's write end and checks the free space, the wait and EV_EOF. The neighbouring checks that the wrong pipe ends throw (EVFILT_READ on the write end, EVFILT_WRITE on the read end) are kept.

Tested

macOS 27.2, Apple M4 Pro, x86-64 build under Rosetta 2, main d4556df8a8:

  • main: guest_kqueue fails with kqueue check failed at core/libs/tests/GuestKqueue.cpp:1416.
  • this PR: ctest -R "^guest_kqueue" passes both tests (guest_kqueue, guest_kqueue_cleared_race); guest_kqueue passes 5 runs out of 5.

Only a macOS-only block is removed, so Linux and Windows run the same checks as before.

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 under Silent stubs in their library's technical debt file
  • 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
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5295304494 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/19490). Originally posted by [imellag](https://github.com/imellag) on 2026-11-13T12:16:11Z. --- ### What `guest_kqueue` fails on macOS at `GuestKqueue.cpp:1416`: a macOS-only check requires that adding `EVFILT_WRITE` on the write end of a pipe throws. 53f80d22f6 (feat(libkernel): support macOS pipe write readiness) made that registration work on macOS and updated the debt entry ("on macOS `EVFILT_WRITE` on an anonymous pipe reads the free space from a zero-timeout private kqueue"), but left this check, so it now fails on every macOS run. The check is removed. The supported case is already covered on every host by `PipeWrite()` in the same test, which registers `EVFILT_WRITE` on a pipe's write end and checks the free space, the wait and `EV_EOF`. The neighbouring checks that the wrong pipe ends throw (`EVFILT_READ` on the write end, `EVFILT_WRITE` on the read end) are kept. ### Tested macOS 27.2, Apple M4 Pro, x86-64 build under Rosetta 2, `main` d4556df8a8: - `main`: `guest_kqueue` fails with `kqueue check failed at core/libs/tests/GuestKqueue.cpp:1416`. - this PR: `ctest -R "^guest_kqueue"` passes both tests (`guest_kqueue`, `guest_kqueue_cleared_race`); `guest_kqueue` passes 5 runs out of 5. Only a macOS-only block is removed, so Linux and Windows run the same checks as before. ### 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](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [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] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [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!19490
No description provided.