Tests: expand pls_quota integration tests for disk free space and file attributes hooks #2197
No reviewers
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!2197
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2197"
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?
@heditrigui on GitHub · 2026-11-25 08:58 UTC · original
heditrigui:tests/pls-quota-and-attributes-suite→main· +84 −2 · 1 files · 1 commits · openSummary
Expands native hook integration coverage in
crates/xcl/tests/pls_quota.rs:GetDiskFreeSpaceWandGetDiskFreeSpaceAon mounted volume aliases (P:\) succeed, return non-zero cluster dimensions, and maintain parity across wide and ANSI calls.GetFileAttributesWandGetFileAttributesAcorrectly resolve mounted files (P:\existing.bin) and non-ASCII paths (s:/世界/nested.bin), returning matching valid attributes.GetFileAttributesWon nonexistent paths (P:\missing.bin) returnsINVALID_FILE_ATTRIBUTESand setsERROR_FILE_NOT_FOUND.GetFileAttributesExWwithGetFileExInfoStandardretrieves accurate 64-bit file sizes for mounted files (existing.bin= 123 B,nested.bin= 456 B) and reportsERROR_FILE_NOT_FOUNDon missing files.Tested
python -m pytest scripts/(25 passed in 0.48s).scripts/pr_check.py --local.Not tested
tests/integration suites are non-runtime code).AI use
@raylitebull on GitHub · 2026-11-25 10:48 UTC · original
Code review on
e616da2:crates/xcl/tests/pls_quota.rscleanly coversGetDiskFreeSpaceW/AonP:\andGetFileAttributesW/A/GetFileAttributesExWacross existing, Unicode-nested (s:/世界/nested.bin), and missing files, and both CI checks are green.Remaining before merge: Independent dual-vendor/host verification on
e616da2.@tiagonleal on GitHub · 2026-11-25 12:33 UTC · original
Verification on NVIDIA RTX 5070 Ti (Windows 11), head
e616da2a45613f51e1833d27fcfbb296330a300eTested
e616da2a45613f51e1833d27fcfbb296330a300e(git rev-parse HEADof a clean worktree, no local changes, built as is). The PR was open and the head unchanged when I started and again before writing this.cargo testdefault).crates/xcl/tests/pls_quota.rs, so I ran that target and not--lib:cargo test -p xcl --test pls_quota -- --test-threads=4 --nocapture: 1 passed, 0 failed, 0 ignored (about 20 s including an incremental build). Tests:disk_free_space_ex_reports_pls_quota. I read the test first: itsP:is a mount in a config created under the temp directory, not a real drive, and it does not touch driver caches.SKIPPEDlines in the output.Not tested
cargo test --workspace,--liband the other test targets; release profile; Developer Mode on (off here); the retail game andxcl-smoke.AI use
Run and written with Claude Code (Claude Fable 5.2 and Claude Sonnet 5.5).
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.