test(relinker): run file writer replacement against a copy of the test binary #6877
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6877"
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 root-over on 2026-10-16T15:35:22Z.
What
file_writer_binaryandfile_writer_textcopied/bin/sleepunder the namerunning(andleftover) and executed it. On recent Ubuntu/bin/sleepis uutils coreutils, a multicall binary that refuses to run under a name that is not a utility:so both tests failed there while
FileWriteritself was fine. The test now copies its own executable (/proc/self/exe) and runs it with asleepmode, so it no longer depends on how the distribution packages coreutils.Tested
Ubuntu with uutils coreutils (
/bin/sleep -> /usr/lib/cargo/bin/coreutils/sleep), GCC 15.2.0, CMake 4.2.3, Ninja, Release withBUILD_TESTING=ON:file_writer_binaryandfile_writer_textfail onmainand pass with this change; the rest of the suite is unchanged (the skipped tests are device capabilities of the GPU).ANYPS5_RELINKER_ONLY=ON): 182/182 pass.tools/check_conventions.py --base origin/mainpasses.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)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T03:32:17Z.
Independent Linux validation on head
b9b82f8e9: with GCC 12.2, Release, andANYPS5_RELINKER_ONLY=ON,file_writer_testsbuilds and bothfile_writer_binaryandfile_writer_textpass (2/2).git diff --check upstream/main...HEADandcheck_conventions.py --base upstream/main --head HEADalso pass. I did not find a concrete issue in the self-executable helper approach.Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-17T09:38:20Z.
Rebase handoff — rebased onto current
main(authorship unchanged). One conflict inFileWriterTests.cpp:mainrenamed the child's mode argument fromsleeptowaitafter your branch point; the merged version followsmain's naming.Verified on Linux (CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release,
BUILD_TESTING=ON, AMD RX 9070 XT / RADV):tools/check_conventions.py --base origin/mainpassesmainregression (agc_driver_tessellationsegfault, #4727), not this PRTo pick it up:
Head is
adb0e7a8c.Imported from boykopovar/AnyPS5. Originally posted by root-over on 2026-10-19T06:54:32Z.
Closing: the same fix landed on
mainin #6027 (3abfe906b), which was opened earlier. Thanks @MarcZX10 for the Linux validation and @blawesom for the rebase.Pull request closed