test(libSceUsbd): cover sceUsbdFillControlSetup buffer formatting #9116

Merged
al3w0f205 merged 1 commit from upstream-pr/9116 into main 2026-10-23 00:02:56 +00:00
al3w0f205 commented 2026-10-21 12:37:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by al3w0f205 on 2026-10-21T12:37:20Z.


What

Adds test coverage for \sceUsbdFillControlSetup\ in \core/libs/tests/GuestUsbd.cpp:

  • Asserts that a null setup buffer throws \std::runtime_error.
  • Verifies that request type, request, little-endian value, index, and length fields are correctly written into the 8-byte setup packet.

Tested

  • Ran \python tools/check_conventions.py --base origin/main\ cleanly (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; silent stubs are listed under Silent stubs
  • No notes, investigation .md files or images added
  • 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:4951654306 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9116). Originally posted by [al3w0f205](https://github.com/al3w0f205) on 2026-10-21T12:37:20Z. --- ### What Adds test coverage for \sceUsbdFillControlSetup\ in \core/libs/tests/GuestUsbd.cpp\: - Asserts that a null setup buffer throws \std::runtime_error\. - Verifies that request type, request, little-endian value, index, and length fields are correctly written into the 8-byte setup packet. ### Tested - Ran \python tools/check_conventions.py --base origin/main\ cleanly (0 errors). ### 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; silent stubs are listed under Silent stubs - [x] No notes, investigation .md files or images added - [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
github-actions[bot] commented 2026-10-21 12:52:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-21T12:52:46Z.


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.

Pull request Shared files not compared
PR 6044 core/libs/tests/GuestUsbd.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6316475187 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9116#issuecomment-6316475187). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-21T12:52:46Z. --- <!-- pr-overlap --> 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. | Pull request | Shared files not compared | |---|---| | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `core/libs/tests/GuestUsbd.cpp` |
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!9116
No description provided.