Repository navigation
Tests: accept Wine's missing-path error in pls_quota - #2415
ldeep98154deep-jpg wants to merge 1 commit into
Conversation
bb654ae to
9af2fce
Compare
Wine's GetDiskFreeSpaceExW answers ERROR_FILE_NOT_FOUND for a missing path below a mounted PLS drive, where Windows answers ERROR_PATH_NOT_FOUND. The test asserted 3 unconditionally and failed on Wine (xcl-dev#810); PR xcl-dev#2197 expands other pls_quota coverage but leaves that assertion unchanged. Keep the Windows assertion strict, accept Wine's code only under under_wine(), and read GetLastError() before it so GetProcAddress cannot overwrite the error. Cover both host branches with a unit test.
9af2fce to
5e26d80
Compare
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
The lowered program is missing an expected group barrier (or emits one where none is expected). Needs a fix before merge. — Devin |
…#2414, xcl-dev#2415 Integrates per-draw mirror sync fast path (xcl-dev#2437), PresentX compositor hardening (xcl-dev#2418), XAudio2 GetState buffer context fix (xcl-dev#2410), and Wine test fixes (xcl-dev#2414, xcl-dev#2415). Assisted-by: Antigravity (Gemini 4 Neon)
|
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
Result,
Base, verbatim:
Not tested
AI use
|
…#2414, xcl-dev#2415 Integrates per-draw mirror sync fast path (xcl-dev#2437), PresentX compositor hardening (xcl-dev#2418), XAudio2 GetState buffer context fix (xcl-dev#2410), and Wine test fixes (xcl-dev#2414, xcl-dev#2415). Assisted-by: Antigravity (Gemini 4 Neon)
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.