test(libSceSaveData.native): cover unmounted mount point in icon operations #12220

Merged
al3w0f205 merged 1 commit from upstream-pr/12220 into main 2026-10-29 23:00:36 +00:00
al3w0f205 commented 2026-10-28 03:49:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by al3w0f205 on 2026-10-28T03:49:33Z.


What

Add test coverage in GuestSaveDataMountStatus.cpp for unmounted mount points in sceSaveDataLoadIcon and sceSaveDataSaveIcon:

  • Rejection of unmounted mount point in sceSaveDataLoadIcon with SaveDataErrorNotMounted

  • Rejection of unmounted mount point with null icon buffer in sceSaveDataLoadIcon with SaveDataErrorNotMounted

  • Rejection of unmounted mount point in sceSaveDataSaveIcon with SaveDataErrorNotMounted

  • Rejection of unmounted mount point with null icon buffer in sceSaveDataSaveIcon with SaveDataErrorNotMounted

Tested

  • Windows 11 x64, checked with python tools/check_conventions.py --base origin/main (all conventions checks passed) and git diff --check (clean).
  • Focused test execution: ctest -R guest_savedata_mount_status (1/1 test passed, 0 failures).

Checklist

  • Based on current main; no other open PR implements the same functions

  • One 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 file

  • No notes, investigation .md files 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

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5044906919 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12220). Originally posted by [al3w0f205](https://github.com/al3w0f205) on 2026-10-28T03:49:33Z. --- ### What Add test coverage in `GuestSaveDataMountStatus.cpp` for unmounted mount points in `sceSaveDataLoadIcon` and `sceSaveDataSaveIcon`: - Rejection of unmounted mount point in `sceSaveDataLoadIcon` with `SaveDataErrorNotMounted` - Rejection of unmounted mount point with null icon buffer in `sceSaveDataLoadIcon` with `SaveDataErrorNotMounted` - Rejection of unmounted mount point in `sceSaveDataSaveIcon` with `SaveDataErrorNotMounted` - Rejection of unmounted mount point with null icon buffer in `sceSaveDataSaveIcon` with `SaveDataErrorNotMounted` ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> - Windows 11 x64, checked with `python tools/check_conventions.py --base origin/main` (all conventions checks passed) and `git diff --check` (clean). - Focused test execution: `ctest -R guest_savedata_mount_status` (1/1 test passed, 0 failures). ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-10-28 04:13:10 +00:00 (Migrated from github.com)

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 returns NOT_MOUNTED before the optional icon is used. I built the exact changed test source and ran guest_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 main and rerun affected checks, as required by CONTRIBUTING. It is 42 commits behind 7fe69e276fc4e000ccb2a360ea8faeb3d7fcc137; intervening main changes do not touch GuestSaveDataMountStatus.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.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5677707281 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12220#pullrequestreview-5677707281). Originally posted by [MarcZX10](https://github.com/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 returns `NOT_MOUNTED` before the optional icon is used. I built the exact changed test source and ran `guest_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 `main` and rerun affected checks, as required by CONTRIBUTING. It is 42 commits behind `7fe69e276fc4e000ccb2a360ea8faeb3d7fcc137`; intervening main changes do not touch `GuestSaveDataMountStatus.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.
THEMANnt commented 2026-10-29 06:59:37 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-29T06:59:37Z.

Review: APPROVED


Reviewed 21771c59d6077ee967262f2b1ddeb43c26dea18a against 82d5f01f28b3d63dd811f4424b3d5e4de5845eca. 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.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5693970217 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12220#pullrequestreview-5693970217). Originally posted by [THEMANnt](https://github.com/THEMANnt) on 2026-10-29T06:59:37Z. **Review:** APPROVED --- Reviewed `21771c59d6077ee967262f2b1ddeb43c26dea18a` against `82d5f01f28b3d63dd811f4424b3d5e4de5845eca`. 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.
MarcZX10 commented 2026-10-29 11:15:57 +00:00 (Migrated from github.com)

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 main has since changed core/libs/prx/libSceSaveData.native/Export.cpp, which is the implementation exercised by this test. This branch remains based on 0c5401dcbd, not current main ba5b5330b3. Please merge current main and rerun guest_savedata_mount_status on the resulting head before merge.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5696796537 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12220#pullrequestreview-5696796537). Originally posted by [MarcZX10](https://github.com/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 `main` has since changed `core/libs/prx/libSceSaveData.native/Export.cpp`, which is the implementation exercised by this test. This branch remains based on `0c5401dcbd`, not current `main` `ba5b5330b3`. Please merge current main and rerun `guest_savedata_mount_status` on the resulting head before merge.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!12220
No description provided.