test(libSceSystemService): retain rejected LoadExec paths in errors #4925
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4925"
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 MarcZX10 on 2026-10-13T04:29:43Z.
What
Keep regression coverage for the
sceSystemServiceLoadExecdiagnostic when an executable replacement cannot be performed. Currentmainalready reports the rejected guest path; this PR now asserts that the error retains the path for four invalid targets, including paths outside/app0and 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
guest_system_exitand negative-control results were reported for the prior base and do not validate this rebased head.main, I have not built or run the test suite.git diff --check upstream/main...HEADpasses.Checklist
main; the diff adds coverage for a diagnostic not asserted by the existing testsImported 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.binand continues to reject other paths, so the diagnostic remains useful alongside it. There is no semantic dependency between the changes, but theirsceSystemServiceLoadExecedits need a small rebase/merge, and the unsupported-path branch should retain the path-specific message whichever lands second.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-13T08:13:45Z.
Rebased onto current
main6e83cad17574960029bdca66626dff57cfb7bb4c. The source diagnostic from the original patch is now already present in main, so I kept the non-duplicate part:GuestSystemExit.cppasserts that each of four rejected paths is present in the thrown error. The branch now changes tests only.git diff --checkpasses; I have not rebuilt or run tests on this rebased head, and I updated the title and description to reflect that scope.Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-13T08:41:13Z.
Windows test: head
59fd2f796merged onto currentmaindb3d379c8(clean merge, no conflicts). Windows 10, MinGW GCC (WinLibs), Ninja Release,-j2: full build 0 errors; ctest with the filterguest_system_exit: guest_system_exit_parameters passed, guest_system_exit passed (2 test(s), 0 failed);python tools/check_conventions.py --base upstream/mainpassed. I did not run the new tests againstmainwithout the change.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-14T17:22:03Z.
Checked: the assertion at
GuestSystemExit.cpp:209fails when the path is dropped from theLoadExecerror (mutatedExport.cppto remove it:guest_system_exit_parametersaborts; restored it passes). Scoped build + ctest green, plus @xXPBSXx's Windows run; merging.