test(libSceAppContent): cover uninitialized rejection in sceAppContentTemporaryDataMount #10289

Merged
al3w0f205 merged 3 commits from upstream-pr/10289 into main 2026-10-26 01:48:50 +00:00
al3w0f205 commented 2026-10-23 16:33:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by al3w0f205 on 2026-10-23T16:33:11Z.


What

Add test coverage for uninitialized state rejection in sceAppContentAddcontMount, sceAppContentAddcontUnmount, and sceAppContentGetAddcontInfoList.

Tested

  • Ran python tools/check_conventions.py --base origin/main cleanly (0 errors).

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; silent stubs are listed under Silent stubs
  • No notes, investigation .md files or images added
  • 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:4986037228 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10289). Originally posted by [al3w0f205](https://github.com/al3w0f205) on 2026-10-23T16:33:11Z. --- ### What Add test coverage for uninitialized state rejection in `sceAppContentAddcontMount`, `sceAppContentAddcontUnmount`, and `sceAppContentGetAddcontInfoList`. ### Tested - Ran `python tools/check_conventions.py --base origin/main` cleanly (0 errors). ### Checklist - [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 - [x] Unimplemented paths throw; silent stubs are listed under Silent stubs - [x] No notes, investigation .md files or images added - [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-24 21:26:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-24T21:26:27Z.

Review: CHANGES_REQUESTED


On current main (c8d34aa8f4d8058d57169cc1e423ba6db00faaf0), core/libs/tests/GuestAppContent.cpp already makes these same three calls before initialization and checks 0x80D90001 at lines 45–48. The additions here repeat the exact cases later in the same test, so they add no coverage. Please remove the duplicate assertions or identify a distinct untested case this PR is intended to cover.

The current PR checks show conventions, eligibility and intake passing; both product test jobs are skipped, so CI has not run the affected test on Linux or Windows.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5640092208 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10289#pullrequestreview-5640092208). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-24T21:26:27Z. **Review:** CHANGES_REQUESTED --- On current `main` (`c8d34aa8f4d8058d57169cc1e423ba6db00faaf0`), `core/libs/tests/GuestAppContent.cpp` already makes these same three calls before initialization and checks `0x80D90001` at lines 45–48. The additions here repeat the exact cases later in the same test, so they add no coverage. Please remove the duplicate assertions or identify a distinct untested case this PR is intended to cover. The current PR checks show conventions, eligibility and intake passing; both product test jobs are skipped, so CI has not run the affected test on Linux or Windows.
THEMANnt commented 2026-10-25 04:29:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-25T04:29:03Z.

Review: APPROVED


Reviewed fcb9f57f50c9c47f385a777d20c41b4a4d0ea1ae against 990f45e17dc12cb5d09705e7c7adf5583117ec1c. No actionable findings in this focused review.

Source review: Inspected the complete four-line test change and all three pinned entry points. Mount, unmount and info-list check initialized before their pointer validation and return 0x80D90001. The new calls remain before sceAppContentInitialize. Similar checks already occur at test startup; these repeat them after the metadata fixture is created, without changing initialization state or production behavior.

Validation: Head and baseline GuestAppContent.cpp pass MinGW GCC 15.2 C++23 syntax compilation. Conventions, whitespace and script registration passed. An attempted compatibility link against existing local development runtimes failed on existing test imports absent from those artifacts; no executable ran, and that artifact mismatch is not attributed to this test-only patch. Hosted product/relinker jobs were skipped.

Scope: Approval covers the bounded assertion additions from pinned-source contract checks and compilation. No linked AppContent test, full application or game execution is claimed.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5641494083 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10289#pullrequestreview-5641494083). Originally posted by [THEMANnt](https://github.com/THEMANnt) on 2026-10-25T04:29:03Z. **Review:** APPROVED --- Reviewed `fcb9f57f50c9c47f385a777d20c41b4a4d0ea1ae` against `990f45e17dc12cb5d09705e7c7adf5583117ec1c`. No actionable findings in this focused review. **Source review:** Inspected the complete four-line test change and all three pinned entry points. Mount, unmount and info-list check initialized before their pointer validation and return 0x80D90001. The new calls remain before sceAppContentInitialize. Similar checks already occur at test startup; these repeat them after the metadata fixture is created, without changing initialization state or production behavior. **Validation:** Head and baseline GuestAppContent.cpp pass MinGW GCC 15.2 C++23 syntax compilation. Conventions, whitespace and script registration passed. An attempted compatibility link against existing local development runtimes failed on existing test imports absent from those artifacts; no executable ran, and that artifact mismatch is not attributed to this test-only patch. Hosted product/relinker jobs were skipped. **Scope:** Approval covers the bounded assertion additions from pinned-source contract checks and compilation. No linked AppContent test, full application or game execution is claimed.
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!10289
No description provided.