Tests: accept Wine's missing-path error in pls_quota #2405
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2415"
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 ivall/xcl. Originally posted by ldeep98154deep-jpg on 2026-11-25T18:10:06Z.
Fixes #810
disk_free_space_ex_reports_pls_quotaassertedERROR_PATH_NOT_FOUNDunconditionally. On Wine, the forwarded host
GetDiskFreeSpaceExWreturnsERROR_FILE_NOT_FOUND, so the test failed before it reached the quota checks.PR #2197 adds other
pls_quotacoverage but leaves this assertion unchanged.What is in it
ERROR_FILE_NOT_FOUNDforS:\missingonly whenunder_wine(); Windows still requiresERROR_PATH_NOT_FOUND.GetLastError()before callingunder_wine(), so itsGetProcAddresscannot overwrite the error.Tested
Local Windows x64, Intel Iris Xe Graphics (16-lane waves),
stable-x86_64-pc-windows-gnuwith llvm-mingw; DXC 1.9.2607.0 / DXIL 1.8.2502.11.cargo +stable-x86_64-pc-windows-gnu test -p xcl --test pls_quota -- --nocapture— 2 passed, 0 failed.
cargo +stable-x86_64-pc-windows-gnu test --workspace -- --test-threads=4 --skip pe::tests::parses_own_test_binary_tls --skip test_title_runs_and_game_folder_is_untouched— 703 passed, 0 failed, 41 ignored, 2 filtered out; 87
SKIPPED ...: no wave64.Not tested
AI use
Claude: screened open issues and PRs, confirmed #810 had no fix in #2197/#1817/#1411/#1462, wrote the test-only change, and ran the commands above.
upstream-sync referenced this pull request2026-11-25 20:07:08 +00:00
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T19:36:29Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: 1 real failure, deterministic (also fails--test-threads=1, 1219/1):The lowered program is missing an expected group barrier (or emits one where none is expected). Needs a fix before merge.
— Devin
Imported from ivall/xcl. Originally posted by pablogonz12 on 2026-11-25T19:47:16Z.
Test report from Linux + Wine (RADV). Prepared with AI assistance: DeepSeek V4.1 Flash in OpenCode; the commands below were run by it and the output is pasted verbatim.
Setup
RADV GFX1201), AMD Radeon RX 9070 XT 16 GB, Ryzen 9 9900X.~/.local/share/Steam/compatibilitytools.d/GE-Proton11-14-x86_64/files/bin/wine), scratch prefix,WINEDLLOVERRIDES="d3d12,d3d12core,dxgi,d3d11,d3d10core=n,b",VKD3D_CONFIG=ignore_shared_fence,WINEDEBUG=-all, DXC 1.9.2609.5.RUSTFLAGS="-C target-feature=+crt-static" cargo xwin test --workspace --release --target x86_64-pc-windows-msvc --no-run, thenwine <pls_quota exe> --test-threads=1.main2898511with this PR merged on top (it merges cleanly, so only this PR differs), head =5e26d80.Result,
pls_quotaintegration test28985115e26d80pls_quotaBase, verbatim:
2isERROR_FILE_NOT_FOUND, which is what Wine'sGetDiskFreeSpaceExWanswers here (GetDiskFreeSpaceExW(s:/<missing>):0 MiB available of 1 MiB); the PR accepts it only underunder_wine()and keepsERROR_PATH_NOT_FOUNDstrict elsewhere. So this is the Wine half of #810, confirmed fixed here, and the newmissing_pls_path_error_accepts_wines_code_only_under_winepasses on Wine as well.Not tested
ERROR_FILE_NOT_FOUNDbranch is not taken there).AI use
Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-27T03:45:53Z.
Linux / Wine check of #2415 at head
5e26d80adfea03f97f9eff022b1012c389f11ad4, merged ontomain8b957bec6f82495aec940944c6bf47faa02db590(no conflicts), againstmainalone. Reproduces #810.Setup
LANG=C.UTF-8, no GPU.x86_64-pc-windows-gnu(Rust 1.100.0, mingw-w64 GCC 13), debug; tests run through Wine as the target runner.cargo test -p xcl --target x86_64-pc-windows-gnu --test pls_quotaResults
main: 0 passed, 1 failed.disk_free_space_ex_reports_pls_quotafails at the missing-path error check (pls_quota.rs:144,assertion left == right), the #810 symptom.main+ #2415: 2 passed, 0 failed (disk_free_space_ex_reports_pls_quota,missing_pls_path_error_accepts_wines_code_only_under_wine).Two setup notes for others on this lane: with Ubuntu's own Wine 9.0 the test stops earlier, at
vfs_hooks::install()(kernelbase.dll!CopyFile2 not found), and without a UTF-8 locale it stops at creating the non-ASCII test folders. Neither reaches the line this PR changes; Wine 11 withLANG=C.UTF-8does.Not tested
AI use
Claude Code (Claude Opus 5.5) set up the container, ran the tests and wrote this report.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:59:49Z.
Triage (#1607) – head
5e26d80#937 (closed) and #837 (closed draft) took the same approach. No open PR does, and main's
pls_quota.rsstill asserts(0, ERROR_PATH_NOT_FOUND)forS:\missing. The Windows assertion stays strict, and the error is read beforeunder_wine()can overwrite it. No problems found in the diff.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.