test(libSceNpEntitlementAccess): cover request bounds and parameter checks in GuestEntitlements #11909
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11909"
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-27T12:24:24Z.
What
Cover invalid request parameters, poll info limits, and handle validations in
GuestEntitlements.Tested
ctest --test-dir build -R '^guest_entitlements' -Von Windows 11 (MinGW-w64 GCC 16.1.0 UCRT), all 2 test suites passed (0.06s).python tools/check_conventions.py --base upstream/main, passed with 0 errors.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 MarcZX10 on 2026-10-27T12:38:20Z.
Review: DISMISSED
The new
sceNpEntitlementAccessInitialize(nullptr, nullptr) == 0assertion atGuestEntitlements.cpp:71codifies the current implementation’s unconditional no-op success, but this PR reports only Windows tests and the library debt says native initialization and validation are unresolved. Since this test adds a parameter-behavior claim without console evidence, please remove that assertion or attach a measurement establishing that null init/boot parameters are accepted. I found no other blocking discrepancy in the added calls; theGetEntitlementKeyerror expectations match the documented emulator reference, though the debt correctly says console precedence remains unverified.Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-28T09:36:08Z.
Review: CHANGES_REQUESTED
Thanks for removing the
sceNpEntitlementAccessInitializeassertion. The same concern applies to most of the others added here:GuestEntitlements.cpp:76-85: these eight assertions pin0x80550006from stubs that ignore their arguments (GenerateTransactionId,PollConsumeEntitlement,RequestConsume*,Poll*EntitlementInfo,Request*EntitlementInfo). Several passnullptrfor the label, transaction ID or info pointer, so the test asserts that no parameter validation happens.docs/dev/debt/libSceNpEntitlementAccess.md("Entitlement requests and polls") says these signed-out responses do not reproduce native initialization or validation, and nothing in the PR shows measured console behaviour for them.GuestEntitlements.cpp:72-74(GetEntitlementKey) is fine: the errors follow KytyPS5 and are recorded in the debt file.Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-28T16:57:20Z.
Review: APPROVED
Reviewed
6e775896ba1afe9fa33251b17dd13f8753a001c1— approve. The entitlement-key assertions distinguish null argument rejection from the unavailable-key result for a valid synthetic entitlement label. They extend the local entitlement fixture without an online entitlement service.Windows/GCC 15.3 Release native validation from pinned sources: head: 2 passed, 0 skipped;
guest_entitlements,guest_entitlements_missing; author base was source-compared: production sources are unchanged; its runtime was not built or executed for this review. This changes test coverage, not production behavior, so an old-production failure is not required. The build reuses matching dependency source pins and the existing FFmpeg package; no full product or game execution is claimed.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T06:19:38Z.
Review: APPROVED
Re-checked — approved
The unsupported null-initialization success assertion has been removed, so this test no longer codifies unmeasured initialization behavior. The remaining boundary tests match the existing documented emulator error expectations, with the PR/debt text retaining the limitation that console precedence is not measured. The author reports
guest_entitlementspassing 2/2 suites on the updated head and conventions passing.Hosted Windows, eligibility, conventions, and labels pass; other product jobs are skipped. I did not rerun the test locally.