test(libkernel): don't require restoring the directory time on Windows #3518
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3518"
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 Silverash-i8 on 2026-10-11T12:10:20Z.
What
guest_filesystemaborts on Windows on currentmainsince #3465:Line 286 is
Require(!restoreTimeError). The empty-pathsceKernelUtimescheck saves the working directory's write time, callssceKernelUtimes(""), then restores the time withstd::filesystem::last_write_time(".", ...)and requires the restore to succeed. With MinGW that call fails with EACCES for a directory. A standalone program built with the same g++ shows it: setting the time of a directory (or.) gives13 Permission denied, a file's works. The emulator's ownNativeUtimesis fine with directories on Windows, since it opens them withFILE_FLAG_BACKUP_SEMANTICS; only the test's host-side restore is affected.This drops the
Requireon the restore and keeps the restore itself, so Linux still puts the time back and thesceKernelUtimes("") == ENOENTcheck from #3465 is unchanged.Tested
Windows 11, WinLibs GCC 15.2.0 r7, Release, on
main2220effb:guest_filesystemfails at line 286 without the change and passes 3/3 with it. Not run on Linux (the change only removes a check).tools/check_conventions.py --base upstream/mainpasses.guest_kernel_sysalso fails on Windows onmain, but that's thesymlinkENOSYS from #3491, which screamm reported there and #3510 fixes; it's unrelated to this.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)https://claude.ai/code/session_012SLQbhAiexxW6TtjYToW8a
Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-11T12:24:11Z.
Windows validation of the current head
cec3777amerged ontomain1e8fff68(Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release,BUILD_TESTING=ON): on unchangedmainguest_filesystemfails here atGuestFilesystem.cpp:286(Filesystem check failed at line 286 (guest errno 13, Win32 error 5), the directory-time restore); with this change it passes 3/3 (--repeat until-fail:3).Validation run with Claude Code assistance.
Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-11T12:39:51Z.
Independent Windows validation (2026-10-11, Amoenus)
Independently reproduced the host-fixture failure on
main2220effbewith our existing integration prerequisites, on Windows 11 Enterprise build 26200, WinLibs GCC 15.2.0 r7, Ninja, Release, BUILD_TESTING=ON:It reproduces both in the parallel relevant-suite run and serially. The failed line is the host directory-time restore assertion, not the guest empty-path errno assertion.
With your exact one-line change from
cec3777a986ded42ba955958e48b6874679022de, guest_filesystem passes 5/5. The empty-path guest ENOENT check remains present. A standalone host-only probe with the same toolchain, 5/5 runs, confirms:The complete build and all 122 patched libraries succeed. After also carrying #3510's rework, all 19 selected relevant test groups pass five times each (95 passes); conventions pass against
2220effbe. This is combined integration validation, not a full repository-suite or unchanged-main claim. The before/after 122-library profiles differ only in libkernel_sys from the symlink change: this timestamp change alters the fixture, with no production-library change.Integration source (your author attribution retained; fork only, no PR created). Linux was not run here. No game-startup or console-equivalence claim. AI-assisted execution and report: Codex.
Imported from boykopovar/AnyPS5. Originally posted by screamm on 2026-10-11T15:01:11Z.
Windows rerun of the rebased head
8b0b78f5, which is one commit on currentmaina11c8f7f(my earlier run was oncec3777a): Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release,BUILD_TESTING=ON, full build includinglibs.guest_filesystem: passes 3/3 (--repeat until-fail:3). Onmaina11c8f7fit still fails atGuestFilesystem.cpp:286(guest errno 13, Win32 error 5).ctest -R '^guest_'(parallel, -j8): 288 of 290.guest_kernel_sysfails withsymlink: Function not implemented, which is #3510, not this PR.guest_ampr_markersfailed once in the parallel run and passed 5/5 serially afterwards (--repeat until-fail:5), as in #3371.guest_video_out_wqhd_detection_no_vulkanskipped.check_conventions.py --base origin/mainis clean.AI-assisted (Claude Code); run on my machine.