cpu: terminate the native CRC line fixture #481
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/487"
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 R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-22T06:57:45Z.
Change
Reuse the shared EXE startup wrapper for the CRC-32 and CRC-32C fixtures from #455. Windows launch exits with the CRC body's status,
pe_mapreturns that status to the host, and the console AOT translator liftsnative_entryfrom the same source EXE.Refs #281.
Verification
Ten selected CTests passed in each of Debug and Release on Windows 10 22H2 build 19045.6456 with MSVC 19.44.35230 and Zig 0.13.0. Tested
aad1801on933cbad. The documentation link check also passed.Repeat the build and CTest commands with
--preset release. With a worker held on an event, the native process handle signaled, both pipes reached EOF, stdout matched the expected bytes, stderr was empty, and the exit status matched. EOF before input returned 1. Read-only stdout kept the sink unchanged and returned 2. The mapped host emitted its marker afterpe_map_runreturned.Evidence and follow-up
The native launch and
pe_mapused the same EXE, and the generated AOT binary carried the matching input SHA-256.cpu_crc_line.exee2cf64cf9312bc09877a57e26851cd29f588148085fac7b2202583ba06b6d9bb04889ae8408c3b413e4d553172875637a7929cd634882ce446a386e3889b002fcpu_crc_castagnoli.exe76050665fee9c070f79e59d8e136e9fb28574977033ebcdfe519e513b7cc3f10bf2b93143be0ed6e06ba227fdb1e1fb7a3fd4338962618b3a5894454b33c7e00A scratch I/O DLL that skipped
ExitProcessonly on status 1 reproduced the EOF hang with the same CRC EXE in both configurations. The standard vector still passed. The fixtures and inputs come from the repository's MIT-licensed source. Experiment documentation.Checklist
AI-assisted.