test(libSceSystemService): retain rejected LoadExec paths in errors #4925

Merged
MarcZX10 merged 1 commit from upstream-pr/4925 into main 2026-10-14 17:52:06 +00:00
MarcZX10 commented 2026-10-13 04:29:43 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T04:29:43Z.


What

Keep regression coverage for the sceSystemServiceLoadExec diagnostic when an executable replacement cannot be performed. Current main already reports the rejected guest path; this PR now asserts that the error retains the path for four invalid targets, including paths outside /app0 and paths with empty or parent-directory components.

This is test-only coverage. It does not add secondary executable conversion or process replacement. Related to #4793.

Tested

  • Earlier Linux guest_system_exit and negative-control results were reported for the prior base and do not validate this rebased head.
  • After rebasing onto current main, I have not built or run the test suite.
  • git diff --check upstream/main...HEAD passes.

Checklist

  • Based on current main; the diff adds coverage for a diagnostic not asserted by the existing tests
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw; no silent stub added
  • No notes, investigation files or images added
  • No new third-party code
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Unblocks: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4838373195 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4925). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-13T04:29:43Z. --- ### What Keep regression coverage for the `sceSystemServiceLoadExec` diagnostic when an executable replacement cannot be performed. Current `main` already reports the rejected guest path; this PR now asserts that the error retains the path for four invalid targets, including paths outside `/app0` and paths with empty or parent-directory components. This is test-only coverage. It does not add secondary executable conversion or process replacement. Related to #4793. ### Tested - Earlier Linux `guest_system_exit` and negative-control results were reported for the prior base and do not validate this rebased head. - After rebasing onto current `main`, I have not built or run the test suite. - `git diff --check upstream/main...HEAD` passes. ### Checklist - [x] Based on current `main`; the diff adds coverage for a diagnostic not asserted by the existing tests - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw; no silent stub added - [x] No notes, investigation files or images added - [x] No new third-party code - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Unblocks: none - [x] AI-assisted: yes
MarcZX10 commented 2026-10-13 04:46:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T04:46:05Z.


On the overlap with #4786: this PR adds the requested guest path to the exception for unsupported executable replacements. #4786 supports /app0/eboot.bin and continues to reject other paths, so the diagnostic remains useful alongside it. There is no semantic dependency between the changes, but their sceSystemServiceLoadExec edits need a small rebase/merge, and the unsupported-path branch should retain the path-specific message whichever lands second.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6138434308 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4925#issuecomment-6138434308). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-13T04:46:05Z. --- On the overlap with #4786: this PR adds the requested guest path to the exception for unsupported executable replacements. #4786 supports `/app0/eboot.bin` and continues to reject other paths, so the diagnostic remains useful alongside it. There is no semantic dependency between the changes, but their `sceSystemServiceLoadExec` edits need a small rebase/merge, and the unsupported-path branch should retain the path-specific message whichever lands second.
MarcZX10 commented 2026-10-13 08:13:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T08:13:45Z.


Rebased onto current main 6e83cad17574960029bdca66626dff57cfb7bb4c. The source diagnostic from the original patch is now already present in main, so I kept the non-duplicate part: GuestSystemExit.cpp asserts that each of four rejected paths is present in the thrown error. The branch now changes tests only. git diff --check passes; I have not rebuilt or run tests on this rebased head, and I updated the title and description to reflect that scope.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6141275151 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4925#issuecomment-6141275151). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-13T08:13:45Z. --- Rebased onto current `main` `6e83cad17574960029bdca66626dff57cfb7bb4c`. The source diagnostic from the original patch is now already present in main, so I kept the non-duplicate part: `GuestSystemExit.cpp` asserts that each of four rejected paths is present in the thrown error. The branch now changes tests only. `git diff --check` passes; I have not rebuilt or run tests on this rebased head, and I updated the title and description to reflect that scope.
xXPBSXx commented 2026-10-13 08:41:13 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-13T08:41:13Z.


Windows test: head 59fd2f796 merged onto current main db3d379c8 (clean merge, no conflicts). Windows 10, MinGW GCC (WinLibs), Ninja Release, -j2: full build 0 errors; ctest with the filter guest_system_exit: guest_system_exit_parameters passed, guest_system_exit passed (2 test(s), 0 failed); python tools/check_conventions.py --base upstream/main passed. I did not run the new tests against main without the change.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6141723095 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4925#issuecomment-6141723095). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-13T08:41:13Z. --- Windows test: head `59fd2f796` merged onto current `main` `db3d379c8` (clean merge, no conflicts). Windows 10, MinGW GCC (WinLibs), Ninja Release, `-j2`: full build 0 errors; ctest with the filter `guest_system_exit`: guest_system_exit_parameters passed, guest_system_exit passed (2 test(s), 0 failed); `python tools/check_conventions.py --base upstream/main` passed. I did not run the new tests against `main` without the change. AI-assisted (Claude Code).
adriadam10 commented 2026-10-14 17:22:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-14T17:22:03Z.


Checked: the assertion at GuestSystemExit.cpp:209 fails when the path is dropped from the LoadExec error (mutated Export.cpp to remove it: guest_system_exit_parameters aborts; restored it passes). Scoped build + ctest green, plus @xXPBSXx's Windows run; merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6174173041 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/4925#issuecomment-6174173041). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-14T17:22:03Z. --- Checked: the assertion at `GuestSystemExit.cpp:209` fails when the path is dropped from the `LoadExec` error (mutated `Export.cpp` to remove it: `guest_system_exit_parameters` aborts; restored it passes). Scoped build + ctest green, plus @xXPBSXx's Windows run; merging.
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!4925
No description provided.