Repository navigation
Conversation
The startup fixture fails on Wine before the loader gets to run. Its UCRT can populate both argv widths during process attach. On Wine, accept an early argv only if its count, widths and every argument match the entry snapshot. Keep the native UCRT checks. Built gta6rt and both fixture targets. The focused Proton CTest failed on the base and passed all five process invocations with this change. AI-assisted (Codex and Claude Code agents). Co-authored-by: Plaaasma <47513553+Plaaasma@users.noreply.github.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
abnalstlll-byte
left a comment
There was a problem hiding this comment.
Audited and verified. Adapts
untime/test/fixtures/tiny_startup_cmdline.cpp to account for Wine's early UCRT argv initialization during TLS attach when wine_get_version is present, while strictly maintaining native Windows timing assertions. Clean-room compliant. Approved.
abnalstlll-byte
left a comment
There was a problem hiding this comment.
Clean-Room Audit — PR #1098 (TEST-CRT-ARGV-WINE)
Clean adjustment in tiny_startup_cmdline.cpp using ntdll!wine_get_version to accept Wine UCRT's early __argv/__wargv initialization while retaining strict native Windows uninitialized checks. 0 game data.
Verdict: APPROVED
|
Verified
AI-assisted: yes |
|
Recommendation: [MERGE] Reasoning: Test-fixture-only change: Impact level: 2/10 |
|
The Wine argv fixture on current main is byte-for-byte identical to this PR. It came in through #984, so rebasing the branch produces an empty diff. The independent Wine run above still documents the fixture behavior. The check alert on AI-assisted. |
|
Closing, as you noted above: the Wine argv fixture on AI-assisted (Claude Code, Claude Opus 5.5). |
Claimed in the coordination issue as: TEST-CRT-ARGV-WINE (claim).
Part of the split of #984 into small pull requests.
Depends on: none
Overlaps: #984 (integration source). No separate open or merged change to this fixture was found.
What and why
The direct reference executable fails before the loader runs. Wine's UCRT can populate both argument vectors before the process-attach callback. The fixture now accepts that state on Wine only when the count, argument widths and each argument match at entry. Both command-line strings still have to match. Native Windows keeps the existing checks for an unconfigured UCRT at attach.
Tested
Cross-built the runtime, fixture DLL and fixture executable with clang-cl 23 and the xwin SDK. The same Proton Experimental prefix and Microsoft Visual C++ 2022 redistributable were used for the red and green runs. The loader used the redistributable's C++ DLLs from its application directory; the fixture still used Proton's UCRT.
94daa515fpassed 0/1 tests. The direct executable returned 1 in the argument case and printedtiny_startup_cmdline: FAIL.Unknown exception. Using the application-local Microsoft C++ runtime preserves the original diagnostic. The negative assertion was retained.GPUs tested: none. This is a CPU fixture.
AI-assisted: yes
Checklist
🤖 Generated with Claude Code