test(libSceSaveData.native): cover unmounted mount point in icon operations #12220
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12220"
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-28T03:49:33Z.
What
Add test coverage in
GuestSaveDataMountStatus.cppfor unmounted mount points insceSaveDataLoadIconandsceSaveDataSaveIcon:Rejection of unmounted mount point in
sceSaveDataLoadIconwithSaveDataErrorNotMountedRejection of unmounted mount point with null icon buffer in
sceSaveDataLoadIconwithSaveDataErrorNotMountedRejection of unmounted mount point in
sceSaveDataSaveIconwithSaveDataErrorNotMountedRejection of unmounted mount point with null icon buffer in
sceSaveDataSaveIconwithSaveDataErrorNotMountedTested
python tools/check_conventions.py --base origin/main(all conventions checks passed) andgit diff --check(clean).ctest -R guest_savedata_mount_status(1/1 test passed, 0 failures).Checklist
Based on current
main; no other open PR implements the same functionsOne 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 fileNo notes, investigation
.mdfiles 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
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-28T04:13:10Z.
Review: DISMISSED
The new null-icon/unmounted cases match the current implementation’s validation order: a null mount point returns
PARAMETER, then an unmounted mount point returnsNOT_MOUNTEDbefore the optional icon is used. I built the exact changed test source and ranguest_savedata_mount_status; it passed 1/1 in the isolated review build with only the unrelated host CPU startup gate bypassed. The ordinary host run cannot reach assertions on this Xeon. Hosted Windows passed, the rerun of Conventions passed, and Linux was skipped by CI.Please update the branch to current
mainand rerun affected checks, as required by CONTRIBUTING. It is 42 commits behind7fe69e276fc4e000ccb2a360ea8faeb3d7fcc137; intervening main changes do not touchGuestSaveDataMountStatus.cpp, and the merge preview is clean. The PR body also omits the required third-party-submodule checklist line and gives only platform checkboxes rather than the OS, focused command and result. Please restore every template line and record the test details before approval. I found no functional issue in the new cases.Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-29T06:59:37Z.
Review: APPROVED
Reviewed
21771c59d6077ee967262f2b1ddeb43c26dea18aagainst82d5f01f28b3d63dd811f4424b3d5e4de5845eca. Icon load/save now exercise an unmounted point with both valid and null icon pointers, alongside the mounted success controls. This pins mount-state precedence without modifying production save code. No actionable finding in this scoped test review.Windows/GCC 15.3 Release: configured and built the registered target from pinned sources; focused CTest: 1 passed, 0 skipped. Checked that the fixture assertions remain active in Release. Production source is unchanged from the author base; baseline was source-compared, not rebuilt/rerun here. Matching cached dependency source pins and the existing matching FFmpeg package are used. No game, physical-console or GPU validation is claimed.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T11:15:57Z.
Review: CHANGES_REQUESTED
Re-checked — changes requested
The template and test details have been restored, and the prior review found no functional issue in the unmounted-mount assertions. Current
mainhas since changedcore/libs/prx/libSceSaveData.native/Export.cpp, which is the implementation exercised by this test. This branch remains based on0c5401dcbd, not currentmainba5b5330b3. Please merge current main and rerunguest_savedata_mount_statuson the resulting head before merge.