test(libSceCdlgPlayerReview): cover base reserved validation and finished dialog reopen #12516
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12516"
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 PrivacyOnion on 2026-10-28T16:54:53Z.
What
In
core/libs/tests/GuestPlayerReviewDialog.cpp:scePlayerReviewDialogOpenrejects non-zeroparam.base.reservedbytes with0x80B8000A(COMMON_DIALOG_ERROR_INVALID_ARGUMENT).scePlayerReviewDialogOpenin theFINISHEDstate returns0x80B8000D(COMMON_DIALOG_ERROR_ARG_NULL) fornullptrand preservesCOMMON_DIALOG_STATUS_FINISHED.scePlayerReviewDialogOpenin theFINISHEDstate returns0x80B8000A(COMMON_DIALOG_ERROR_INVALID_ARGUMENT) for invalid parameters (param.size = 0) and preservesCOMMON_DIALOG_STATUS_FINISHED.scePlayerReviewDialogOpenin theFINISHEDstate successfully reopens with a valid parameter, returning0and maintainingCOMMON_DIALOG_STATUS_FINISHED.In
docs/dev/debt/libSceCdlgPlayerReview.md:FINISHEDis not measured on a console.Tested
ctest --test-dir build -R '^guest_player_review_dialog$' --output-on-failure(on commitbdc2c502bdin worktree):Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by rooklz on 2026-10-28T19:05:00Z.
Review: APPROVED
Reviewed exact head
bdc2c502bd(merges cleanly onto main319621ba2e). This is the first run on macOS (arm64, Apple clang, ASan+UBSan).What I ran
Export.cpp+libSceUserService/Export.cpp+ test. A two-symbol link shim aborts forNotImplemented_nid_no_patch/sceSystemServiceParamGetInt, and the test never calls either. Head test passes, 50/50 reruns. Main's test also passes against the unchanged library, which is expected for a test-only change.base.reservedreserved[0..34]reserved[1..35]FINISHED→BUSYon OpenFINISHEDOpen returns 0 without validatingFINISHEDOpen(nullptr) returns 0FINISHEDresets status to 1FINISHEDresets status to 1FINISHEDOpen skips the login-user checkSo 9/10 are caught only by this PR, and both ends of
reservedare pinned.Optional (non-blocking)
The surviving mutant can be killed by sending one user who is not logged in through the reopen path. The head implementation passes this, and the mutant aborts:
git merge-treeagainst main andcheck_conventions --base upstream/mainare both clean. Nit: the new debt line repeats itself ("Dialog lifecycle ... - dialog lifecycle afterFINISHED"). The other entries read "name (lib) ".Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T06:14:48Z.
Review: APPROVED
Re-checked — approved
The exact-head
guest_player_review_dialogCTest result is now recorded twice by the author onbdc2c502bd, and an independent reviewer reports an exact-head macOS ASan/UBSan run as well. I checked that the updated debt entry explicitly says post-FINISHEDlifecycle behavior has not been measured on a console, matching the scope of these test additions.The current branch is mergeable; hosted Windows, conventions, eligibility, and labels pass. Other product jobs were skipped by path policy. I did not run the test locally.
Pull request closed