Repository navigation
test(libs): load every patched library with its imports bound - #1828
Conversation
|
Current-main check: head |
942433e to
2db5c0b
Compare
|
The full current-head Build and Conventions checks are green. One current-main follow-up: this head is 11 commits behind |
2db5c0b to
89a8080
Compare
|
Rebased onto |
|
The Windows failure is |
|
I checked whether I can rerun the failed Windows job. My repository permissions are pull-only, so GitHub does not let me rerun Actions on this upstream PR. The failure report is specific to |
|
I reviewed the full two-file diff and current checks. The Linux job is green, and your report says |
ctest loads the libraries from libs/unpatched, so an import that nid_patcher renames out of another library's exports only shows when a title loads the patched prx. patched_libraries loads each patched .prx with LoadLibraryEx on Windows and dlopen(RTLD_NOW) on Linux, and depends on the libs target so the patched files are current. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
89a8080 to
06f78c2
Compare
What
Closes #1827.
patched_librariesloads each.prxinbuild/core/libs/libs, withLoadLibraryEx(LOAD_WITH_ALTERED_SEARCH_PATH)on Windows anddlopen(RTLD_NOW | RTLD_LOCAL)on Linux. It prints each library that fails to load and fails the test if any does.libstarget, so the patched files are current even when only the default target is built. CI already buildslibsbefore ctest.libc. With MinGW it is linked statically and built with-fasynchronous-unwind-tables, asnid_patcherandsavedata_memory_metadata_testsare, so the unpatchedlibc.prxisn't already in the process under the same name when the patched libraries bind to theirs.Tested
Windows 11, MinGW-w64 GCC 15.2.0, Release:
main4b6ab6b: passes,122 patched libraries loaded, 0 failed, 0.25 s.main+ feat(posix): implement mkstemp and isatty #1613: fails withlibScePosixForWebKit.prx: LoadLibraryEx failed with error 127,121 patched libraries loaded, 1 failed.tools/check_test_registration.pyandtools/check_conventions.pypass.Linux: fork CI run https://github.com/LeandroLP23/AnyPS5/actions/runs/37838975025: all jobs pass,
patched_librariesincluded (the failing case was checked on Windows only).Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)