Repository navigation
Scripts: preserve trailing backslashes in smoke game paths - #588
luna020924 wants to merge 1 commit into
Conversation
Windows treats a backslash before a quoted argument terminator as an escaped quote. Double the trailing backslashes so the child receives the complete path.
|
Tested exact head Tested
Not tested
AI use
|
|
I expanded the native argv fixture to cover four path types with spaces and a Unicode character: local, extended-length local (
Tested on Windows 11 build 26200 with Windows PowerShell 5.1.26100.9818 and PowerShell 7.6.9 using AI use — OpenAI Codex (GPT-6) extended the fixture, ran the tests, and drafted this report. |
Empirical test report (1707802)Hardware / environment
Commands and results
Observed behavior Directory names with and without spaces each passed with zero, one, and two trailing backslashes. The drive-root path passed with its trailing backslash intact. In every case the native process received exactly two arguments, Not tested Real game smoke runs and Rust workspace GPU tests were omitted. The exit codes above come from the synthetic executable and its harness. AI use Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr588-focused.log and published. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
I reproduced the conflict in
Windows 11 build 26100.9711, i7-13700. Synthetic launchers, logs and reports only. No retail files, Rust build or GPU workload. OpenAI Codex (GPT-6) resolved the conflict, extended the regression and ran the checks. I also compared this exact head's native launcher with the newer #2721 at Retest after #2721 was closed in favor of this PR I updated the existing merge candidate to main The candidate’s |
A directory passed to
smoke.ps1 -Gamecan end in a backslash. On the Windows command line that backslash escapes the closing quote, so the child receives a quote in place of the separator. Double the trailing backslashes when quoting the argument.What is in it
scripts/smoke.ps1preserves the exact directory argument. The regression test uses a native fixture to check a path with spaces and zero, one or two trailing backslashes.Tested
scripts\smoke-game-path.tests.ps1failed against the9ce2070smoke script and passed at1707802in Windows PowerShell 5.1.26100.8875 and PowerShell 7.7.0. The fixture receives a literal trailing quote onmainand the original argument on the PR head.cargo build --locked --workspace --jobs 3passed on9ce2070and1707802.cargo test --locked --workspace --no-fail-fast --jobs 3 -- --test-threads=4 --show-outputreported 684 passed, 0 failed and 41 ignored on both9ce2070and1707802.SKIPPEDon both revisions:gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware(no native wave64). libtest includes both in the passed count.Regression run
Not tested
AI use