Tests: pls_quota expects ERROR_PATH_NOT_FOUND for a missing path below S:\, Wine returns ERROR_FILE_NOT_FOUND #810
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#810
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@nicklin11 on GitHub · 2026-11-24 05:43 UTC · original
disk_free_space_ex_reports_pls_quota(crates/xcl/tests/pls_quota.rs) fails under Wine at the line that checks the error ofGetDiskFreeSpaceExWon a path below the PLS drive that does not exist. It expectsERROR_PATH_NOT_FOUND(3) and getsERROR_FILE_NOT_FOUND(2).What happens
Line 144 is
assert_eq!((result, error), (0, ERROR_PATH_NOT_FOUND));afterGetDiskFreeSpaceExW(S:\missing, …). The runtime log of the same run:Where the error code comes from
S:\missingis a translated path, sodisk_free_exincrates/xcl/src/vfs_hooks.rsforwards the host pathdata\pls\missingto the realGetDiskFreeSpaceExW(pls_disk_free_ex→orig), and Wine's own error code reaches the test. The hook does not produce the code itself on that path (it usesERROR_FILE_NOT_FOUNDonly forTarget::Gamepaths). I did not run the test on Windows; the test's expectation of 3 is what I take to be the native behaviour.The test stops at the first failed assertion, so the checks after line 144 (the quota filling up, etc.) did not run under Wine.
Setup
mainatd208e14, debug, cross-built on Linux forx86_64-pc-windows-gnu(mingw-w64 GCC 16.2, posix threads, Rust 1.100.0)wine pls_quota-<hash>.exe(cwdcrates/xcl)0 passed; 1 failedFor context, the same build under Wine:
cargo test -p xcl --libwithouthle::d3d12x::andgpu::: 277 passed, 0 failed, 2 ignored. The Wine error-code failures listed in #175 forget_proc_address_and_load_library_ex_reject_null_name,vfs::truncate_existing_validation_errorsandvfs_hooks::move_case_only_and_self_rename_preserve_fileno longer fail.Possible directions (not decided, a maintainer's call)
crates/xcl/srcchange.I have not written either. Related: #175 (Linux / Wine), #106 (PLS quota), #231 (merged, added the quota in
GetDiskFreeSpaceEx).AI use: Claude Code, Claude Sonnet 5.5. It ran the cross-build and the tests and read the code. The Windows behaviour was not checked.
github-bot referenced this issue2026-11-26 05:30:14 +00:00
@ettehn on GitHub · 2026-11-24 06:26 UTC · original
I took on and completed the native Windows verification on Windows 11 25H2 x64 (build 26200.9974), using the reported revision
d208e14and rustc 1.97.1 (MSVC).A standalone
GetDiskFreeSpaceExWcall succeeded on an existingdata\plsdirectory. Bothdata\pls\missinganddata\pls\missing\childreturnedFALSEwith last error3(ERROR_PATH_NOT_FOUND).I ran
cargo test --locked -p xcl --test pls_quota -- --nocapture. XCL also logged error3forS:\missing. The later quota assertions passed, including the check for zero free space after filling the quota. Result: 1 passed, 0 failed, 0 ignored. This confirms the existing assertion on this Windows build. The Wine result of2comes from the original report.AI use: OpenAI Codex (GPT-6) wrote and ran the native probe, ran the existing integration test, and drafted this comment.
mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #175