test(libSceVideoOut): cover sceVideoOutSetFlipMaster and sceVideoOutClearFlipMaster #8784

Closed
al3w0f205 wants to merge 1 commit from upstream-pr/8784 into main
al3w0f205 commented 2026-10-21 00:28:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by al3w0f205 on 2026-10-21T00:28:30Z.


What

Adds test coverage in GuestVideoOutCursor.cpp for unimplemented flip master functions:

  • Asserts that sceVideoOutSetFlipMaster reports that it is not implemented (std::runtime_error).
  • Asserts that sceVideoOutClearFlipMaster reports that it is not implemented (std::runtime_error).

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 (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:4944468239 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8784). Originally posted by [al3w0f205](https://github.com/al3w0f205) on 2026-10-21T00:28:30Z. --- ### What Adds test coverage in `GuestVideoOutCursor.cpp` for unimplemented flip master functions: - Asserts that `sceVideoOutSetFlipMaster` reports that it is not implemented (`std::runtime_error`). - Asserts that `sceVideoOutClearFlipMaster` reports that it is not implemented (`std::runtime_error`). ### 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](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-21 00:37:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-21T00:37:47Z.

Review: APPROVED


Reviewed exact head 4e9d5c99465a291953a258aabcab30d48155d792. The test adds declarations and checks for the two existing NotImplemented_nid_no_patch stubs; it changes no production behavior or test registration. I compiled the exact changed test source with Linux GCC C++20, -Wall -Wextra -Wpedantic -Werror, and the repository include path successfully. python3 tools/check_conventions.py --base upstream/main --head upstream/pr-8784 passes. Hosted eligibility, conventions, intake and labels pass; full Linux/Windows build jobs are skipped by path policy, so this is a compile-only local check, not a runtime test.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5593535299 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8784#pullrequestreview-5593535299). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-21T00:37:47Z. **Review:** APPROVED --- Reviewed exact head `4e9d5c99465a291953a258aabcab30d48155d792`. The test adds declarations and checks for the two existing `NotImplemented_nid_no_patch` stubs; it changes no production behavior or test registration. I compiled the exact changed test source with Linux GCC C++20, `-Wall -Wextra -Wpedantic -Werror`, and the repository include path successfully. `python3 tools/check_conventions.py --base upstream/main --head upstream/pr-8784` passes. Hosted eligibility, conventions, intake and labels pass; full Linux/Windows build jobs are skipped by path policy, so this is a compile-only local check, not a runtime test.
github-actions[bot] commented 2026-10-21 06:50:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-21T06:50:28Z.


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 8927 core/libs/tests/GuestVideoOutCursor.cpp
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6309940181 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8784#issuecomment-6309940181). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-21T06:50:28Z. --- <!-- 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 8927](https://www.github.com/boykopovar/AnyPS5/pull/8927) | `core/libs/tests/GuestVideoOutCursor.cpp` |
oneandonlydean commented 2026-10-21 19:09:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-21T19:09:13Z.


@al3w0f205 thanks for this one.

I'm keeping tests to real behaviour and argument validation, not asserting that a not-yet-implemented call throws, since that kind of test breaks the moment someone implements the function (same as we settled in #6058).

In core/libs/tests/GuestVideoOutCursor.cpp (main), please drop:

  • passed = ReportsNotImplemented("sceVideoOutSetFlipMaster", ...)
  • passed = ReportsNotImplemented("sceVideoOutClearFlipMaster", ...)
    and their two declarations. Both functions are still stubs.

Every assertion this PR adds is of that kind, so once they're dropped nothing is left. You could swap in tests for real behaviour or argument checks in this module instead, or close it if you'd rather.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6324283622 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/8784#issuecomment-6324283622). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-21T19:09:13Z. --- @al3w0f205 thanks for this one. I'm keeping tests to real behaviour and argument validation, not asserting that a not-yet-implemented call throws, since that kind of test breaks the moment someone implements the function (same as we settled in #6058). In `core/libs/tests/GuestVideoOutCursor.cpp` (`main`), please drop: - `passed = ReportsNotImplemented("sceVideoOutSetFlipMaster", ...)` - `passed = ReportsNotImplemented("sceVideoOutClearFlipMaster", ...)` and their two declarations. Both functions are still stubs. Every assertion this PR adds is of that kind, so once they're dropped nothing is left. You could swap in tests for real behaviour or argument checks in this module instead, or close it if you'd rather.

Pull request closed

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!8784
No description provided.