test(libSceDiscMap): assert runtime error on unimplemented sceDiscMapGetPackageSize #9124
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/9124"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by al3w0f205 on 2026-10-21T12:40:52Z.
What
Adds test coverage for \sceDiscMapGetPackageSize\ in \core/libs/tests/GuestDiscMap.cpp:
Tested
Checklist
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-21T12:52:53Z.
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.
core/libs/tests/GuestDiscMap.cppImported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-21T19:09:25Z.
@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/GuestDiscMap.cpp(main), please drop thesceDiscMapGetPackageSize(0, nullptr, nullptr)try/catch andRequire(threwPackageSize, "sceDiscMapGetPackageSize must throw runtime_error");, plus the declaration and the<stdexcept>include. The function is still a stub.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