test(libkernel_sys): remove links and the fixture without std::filesystem on Windows #7824
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7824"
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 Rajkamalcode on 2026-10-19T09:05:00Z.
What
guest_kernel_sysfails on Windows: the MinGW libstdc++std::filesystem::removereports a dangling symbolic link as missing and clears the error, so removing the test's dangling links fails, andstd::filesystem::remove_allloops forever over the fixture tree that contains them (recursive_directory_iterator::__erasekeeps retrying an entry it cannot remove while the error stays clear). The test now removes reparse points withDeleteFileWorRemoveDirectoryW(a directory reparse point, which the"..."target creates, is only removed by the latter) and removes the fixture withcmd /c rd /s /q. The gap is recorded in the libs technical debt.Overlap: #7039 replaces the same final cleanup line in this file with its new
RemoveTreehelper; this branch is self-contained, and if #7039 lands first I will rebase ontoRemoveTree.Tested
Windows 11, MinGW-w64 GCC 15.2.0 (winlibs), RTX 3070.
guest_kernel_sys: failed before (first at the dangling-link removal, thenremove_allnever returned);ctest -R kernel_syspasses after (Passed, 0.15 s). Only_WIN32paths change; other hosts keepstd::filesystem. The full suite on this machine had 4 failures; the other 3 are unrelated (agc_driver_bda_deviceis issue #7584,guest_errandguest_mathare separate).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 github-actions[bot] on 2026-10-19T09:14:58Z.
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.
main)docs/dev/debt/libs.mdL5Some 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.
docs/dev/debt/libs.mdcore/libs/tests/GuestKernelSys.cppcore/libs/tests/GuestKernelSys.cppcore/libs/tests/GuestKernelSys.cpp