Repository navigation
test(libSceUserService): pin the initialization check and membership answers of IsLoggedIn - #17141
Conversation
|
Windows check of head Setup: Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release. The hosted Windows check does not run these tests on pull requests.
AI-assisted: yes. |
coptergui-ops
left a comment
There was a problem hiding this comment.
Reviewed at current head. Pure test addition: lifecycle test pins sceUserServiceIsLoggedIn / IsLoggedInWithoutLock exactly as docs/dev/debt/libSceUserService.md records them (NOT_INITIALIZED before initialize wins over userId validation; connected initial user answers 1 through both exports; unconnected and UP_USER ids answer 0; NULL out rejected with ERROR_PARAMETER regardless of init state; post-terminate NOT_INITIALIZED). No production-code change. Overlap vs PR 14890 (shared debt file): different entry, no shared lines; same holds for the other listed old PRs (16543, 16690, 16848, 16981, 15163, 16255, 16535, 16654, 16708, 16742 - all different bullets). Conventions checker: no new findings from this diff.
|
Thanks for the review and the Windows run. For the record, this diff adds eight checks to Two details in the review text do not describe this PR: there is no null-output / |
|
Acknowledging the pr-overlap hit against #17634: both pull requests append to the end of |
…answers of IsLoggedIn
1368bad to
a915c52
Compare
What
docs/dev/debt/libSceUserService.mdrecords forsceUserServiceIsLoggedInandsceUserServiceIsLoggedInWithoutLockthat "firmware 13.60 checks membership in its logged-in user list and returns 1 or 0 after checking initialization. AnyPS5 uses its connected-user list for the same query." Neither export had a test. The lifecycle test now pins exactly that: both exports answerUSER_SERVICE_ERROR_NOT_INITIALIZEDbeforesceUserServiceInitialize(the initialization check comes first); after initialization the connected initial user answers 1 through both exports, while a never-connected slot andUSER_SERVICE_USER_ID_INVALIDanswer 0; connecting user index 1 — already pinned by this test through its login event and login id list — flips both exports to 1, and disconnecting returns them to 0. No console measurement is claimed beyond the recorded contract, and no other UserService export is touched.Tested
a915c52ac6111eff82fe1dedeed8b540dbcda466on based03beaf110:cmake --build build --target guest_user_service_lifecycle_tests,ctest -R '^guest_user_service_lifecycle$'— Passed, two consecutive runs.x86_64-w64-mingw32-g++ -fsyntax-only, GCC 12-win32): clean.python tools/check_conventions.py --base origin/main: passed.git diff --check: clean.python tools/pr_overlap.py --branch test/libsceuserservice-is-logged-in: no overlap with open pull requests (1797 probed).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)