test(libc): check host stdout after freopen #8873
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8873"
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 Queuse on 2026-10-21T03:55:08Z.
What
Add the Windows stdout regression suggested in #8741: after
freopen, the Win32 host handle remains valid, writable and distinct from the redirected CRT descriptor. Existing file-content checks verify guest output stays in the reopened file.Tested
Windows 11 x86-64, WinLibs MinGW-w64 GCC 15.2.0-r7, Ninja, Release. Head
6d31de8561includes main097a9514a0.guest_standard_streams,guest_standard_streams_closed_stdout,guest_standard_streams_exclusive_stdout,file_streams: 4/4 pass, with no skips.a23f8fc9fbis clean; runtime results remain tied to the included base097a9514a0.Fresh overlap analysis identifies only #6044's test relocation. Its order proposal remains pending; preserve the host-handle assertions in the moved GuestStandardStreams.cpp if it lands first. No fresh Linux/macOS, title, console or full-suite run.
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-21T04:03:05Z.
Review: APPROVED
Reviewed the test and its Windows execution report. It checks that
freopenredirects the guest CRT stream while preserving the independently configured Win32 stdout handle, then verifies writes through both paths. The check is Windows-only and fits the existing host-standard-stream setup.