Skip to content

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

Merged
adriadam10 merged 1 commit into
boykopovar:mainfrom
MarcZX10:codex/systemservice-loadexec-path-4793
Oct 14, 2026
Merged

adriadam10 merged 1 commit into
boykopovar:mainfrom
MarcZX10:codex/systemservice-loadexec-path-4793

Conversation

@MarcZX10

@MarcZX10 MarcZX10 commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

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

@MarcZX10

Copy link
Copy Markdown
Contributor Author

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.

@github-actions github-actions Bot added prx needs rebase Conflicts with main, rebase needed labels Oct 13, 2026
@MarcZX10 MarcZX10 changed the title fix(libSceSystemService): include rejected LoadExec path test(libSceSystemService): retain rejected LoadExec paths in errors Oct 13, 2026
@MarcZX10
MarcZX10 force-pushed the codex/systemservice-loadexec-path-4793 branch from 55f8745 to 59fd2f7 Compare October 13, 2026 08:13
@MarcZX10

Copy link
Copy Markdown
Contributor Author

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.

@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 13, 2026
@xXPBSXx

xXPBSXx commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Collaborator

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.

@adriadam10
adriadam10 merged commit f6835a6 into boykopovar:main Oct 14, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants