Repository navigation
fix(libSceSysmodule): test and document unknown module ids - #6559
Merged
oneandonlydean merged 2 commits intoOct 17, 2026
Merged
oneandonlydean merged 2 commits into
oneandonlydean merged 2 commits into
Conversation
sceSysmoduleIsLoaded, sceSysmoduleLoadModule and sceSysmoduleUnloadModule return success for an id missing from the module table, because titles that load or unload such an id aborted otherwise (b4db9fd, a2520aa). Nothing tested or recorded it, and two commented-out throws were left in the code. Remove the commented-out throws, list the three functions under Silent stubs in the library's technical debt file, and test that unknown ids succeed without changing state while the internal variants still throw. Written with AI assistance (Claude). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
jotitadev
reviewed
Oct 15, 2026
jotitadev
left a comment
Contributor
There was a problem hiding this comment.
Full build and ctest on Linux, since the description says they were not run.
Ubuntu 26.04, Intel i7-8700, GCC 15.2, Ninja, Release, BUILD_TESTING=ON, full build with submodules. main 31cbb55 with head 3f8337e merged on top.
guest_sysmoduleandguest_sysmodule_maps_scanpass 3 runs of 3.CheckUnknownIdsruns in the realguest_sysmodule_testsbinary against the reallibSceSysmodule(no harness or stubs).- With
Export.cppreverted tomain, the test still passes, as expected: the PR only removes the commented-outthrowlines, so there is no behaviour change for it to catch. - Non-GPU suite (
ctest -E "^agc|gpu|vulkan|video_out" -j8): 648/650, same asmainon this machine. The 2 failures (file_writer_binary,file_writer_text) also fail onmainhere.
Written with AI assistance (Claude Code). I ran the builds and tests above on my machine.
…-id-coverage Keep both sides in GuestSysmodule.cpp (the unknown id check and the Windows unwind region checks) and in libSceSysmodule.md (Silent stubs and Functional). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
sceSysmoduleIsLoaded,sceSysmoduleLoadModuleandsceSysmoduleUnloadModulereturn 0 for a module id missing fromkModuleTable(b4db9fd, a2520aa: titles that load or unload such an id aborted otherwise). The behaviour was neither tested nor listed as a silent stub, and two commented-outthrowlines were left in the code.throwlines.docs/dev/debt/libSceSysmodule.md.sceSysmoduleLoadModuleInternal,sceSysmoduleUnloadModuleInternalandsceSysmoduleLoadModuleInternalWithArgstill throw for it. The test picks the id fromkModuleTable, so it stays valid when ids are added.No behaviour change.
Tested
python3 tools/check_conventions.py --base origin/main: passed.Export.cppin a standalone harness (MinGW GCC 16.1,APS5_VABIneutralized,sceKernelDlsymanddlopen_nid_postfixstubbed): passed.ctest(guest_sysmodule): not run, the submodules were not fetched and the toolchain is not the documented one.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)docs/dev/debt/libSceSysmodule.mdand editGuestSysmodule.cpp; I will rebase on whichever merges first.🤖 Generated with Claude Code