test(libSceNpMatching2): cover null argument validation in GuestNpMatching2Offline #11904

Merged
PrivacyOnion merged 1 commit from upstream-pr/11904 into main 2026-10-28 09:28:52 +00:00
PrivacyOnion commented 2026-10-27 12:23:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-10-27T12:23:46Z.


What

Cover null argument validation in sceNpMatching2SearchRoom, sceNpMatching2SetRoomDataInternal, and sceNpMatching2SetRoomMemberDataInternal in GuestNpMatching2Offline.

Tested

  • Built and ran ctest --test-dir build -R '^guest_np_matching2_offline$' -V on Windows 11 (MinGW-w64 GCC 16.1.0 UCRT), passed (0.05s).
  • Ran python tools/check_conventions.py --base upstream/main, passed with 0 errors.

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:5033833589 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11904). Originally posted by [PrivacyOnion](https://github.com/PrivacyOnion) on 2026-10-27T12:23:46Z. --- ### What Cover null argument validation in `sceNpMatching2SearchRoom`, `sceNpMatching2SetRoomDataInternal`, and `sceNpMatching2SetRoomMemberDataInternal` in `GuestNpMatching2Offline`. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> - Built and ran `ctest --test-dir build -R '^guest_np_matching2_offline$' -V` on Windows 11 (MinGW-w64 GCC 16.1.0 UCRT), passed (0.05s). - Ran `python tools/check_conventions.py --base upstream/main`, passed with 0 errors. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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
MarcZX10 commented 2026-10-27 12:40:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-27T12:40:11Z.

Review: APPROVED


The new initialization/termination and null-argument assertions match the current libSceNpMatching2 validation and lifecycle paths, including the already-initialized and repeated-terminate codes. Windows tests and policy checks pass; Linux product CI is skipped by repository policy. I found no issue in the added coverage.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5667166966 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11904#pullrequestreview-5667166966). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-27T12:40:11Z. **Review:** APPROVED --- The new initialization/termination and null-argument assertions match the current `libSceNpMatching2` validation and lifecycle paths, including the already-initialized and repeated-terminate codes. Windows tests and policy checks pass; Linux product CI is skipped by repository policy. I found no issue in the added coverage.
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!11904
No description provided.