test(libSceUserService): cover user event polling #3507

Merged
krishalivaibhav merged 1 commit from upstream-pr/3507 into main 2026-10-14 19:36:48 +00:00
krishalivaibhav commented 2026-10-11 12:01:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by krishalivaibhav on 2026-10-11T12:01:06Z.


What

Cover sceUserServiceGetEvent in the existing guest user-service test: null input does not consume the initial-user event, the first valid poll returns the implementation's synthetic login event, and a later no-event result leaves the caller buffer unchanged.

This tests current AnyPS5 behavior; it does not independently establish the external PS5 event ABI contract.

Tested

macOS, Apple M2: compiled the actual user-service shared library and focused test directly for native arm64 and x86-64. Both tests pass; x86-64 was run under Rosetta. git diff --check and the local conventions checker pass. The full system-library build has not been validated for this change.

Rebased onto main dacd78525e537a779682032c0ace7f7af120af05, which includes the former checkout repair #3511. The new head is 741b34e45d03f4f1aba12e2313b16cc75abb87d4; conventions and whitespace checks pass. On this exact rebased head, separately compiled the actual current UserService shared library and focused test for native arm64 and x86-64; both test executables passed (x86-64 under Rosetta). These are direct focused builds, not a complete CMake project build. Hosted completed checks show no failures; full Linux/Windows runtime jobs remain skipped/unverified.

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 (former prerequisite #3511 is merged)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4818893742 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3507). Originally posted by [krishalivaibhav](https://github.com/krishalivaibhav) on 2026-10-11T12:01:06Z. --- ### What Cover `sceUserServiceGetEvent` in the existing guest user-service test: null input does not consume the initial-user event, the first valid poll returns the implementation's synthetic login event, and a later no-event result leaves the caller buffer unchanged. This tests current AnyPS5 behavior; it does not independently establish the external PS5 event ABI contract. ### Tested macOS, Apple M2: compiled the actual user-service shared library and focused test directly for native arm64 and x86-64. Both tests pass; x86-64 was run under Rosetta. `git diff --check` and the local conventions checker pass. The full system-library build has not been validated for this change. Rebased onto main `dacd78525e537a779682032c0ace7f7af120af05`, which includes the former checkout repair #3511. The new head is `741b34e45d03f4f1aba12e2313b16cc75abb87d4`; conventions and whitespace checks pass. On this exact rebased head, separately compiled the actual current UserService shared library and focused test for native arm64 and x86-64; both test executables passed (x86-64 under Rosetta). These are direct focused builds, not a complete CMake project build. Hosted completed checks show no failures; full Linux/Windows runtime jobs remain skipped/unverified. ### 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 - [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 (former prerequisite #3511 is merged) - [x] AI-assisted: yes
adriadam10 commented 2026-10-14 16:59:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-14T16:59:20Z.


Checked on Linux: build and guest_user_service pass; changing an expected value (user_id) makes the test abort, so the new checks do run. LOGIN once then NO_EVENT matches KytyPS5; the null-argument case pins current behaviour, as the description says. Merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6173741136 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3507#issuecomment-6173741136). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-14T16:59:20Z. --- Checked on Linux: build and `guest_user_service` pass; changing an expected value (`user_id`) makes the test abort, so the new checks do run. LOGIN once then NO_EVENT matches KytyPS5; the null-argument case pins current behaviour, as the description says. Merging.
adriadam10 commented 2026-10-14 19:20:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-14T19:20:11Z.


Checked on Linux: build and guest_user_service pass; changing an expected value (user_id) makes the test abort, so the new checks do run. LOGIN once then NO_EVENT matches KytyPS5; the null-argument case pins current behaviour, as the description says. The earlier red Linux job (agc_driver_preparation_scope_settle) is unrelated to this diff and was rerun. Merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6176418374 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3507#issuecomment-6176418374). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-14T19:20:11Z. --- Checked on Linux: build and `guest_user_service` pass; changing an expected value (`user_id`) makes the test abort, so the new checks do run. LOGIN once then NO_EVENT matches KytyPS5; the null-argument case pins current behaviour, as the description says. The earlier red Linux job (`agc_driver_preparation_scope_settle`) is unrelated to this diff and was rerun. Merging.
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!3507
No description provided.