victory-hle: make the link-failure save test filesystem-independent #105
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/vktory6--VKtory!105
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-105"
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?
@TheRifai on GitHub · 2026-12-01 13:57 UTC · original
TheRifai:flaky-save-test→main· +27 −22 · 1 files · 3 commits · merged 2026-12-01 14:37 UTCWhat
The save-game test for a kept blob that cannot be hard-linked needed an NTFS temp folder with its 1024-link limit (docs/TASKS.md “Failing and flaky tests”). A test-only hook now makes
hard_linkappear to fail, so the same fallback is exercised on any filesystem; the test also checks the copied blob's bytes. No production path changes — the hook is#[cfg(test)].The reference
No console counterpart: this fixes a test's dependence on a host filesystem feature.
Evidence
cargo xwin check -p victory-hle --target x86_64-pc-windows-msvc --features diagnostics --lockedcompiles.cargo xwin test -p victory-hle --target x86_64-pc-windows-msvc --features diagnostics --locked a_kept_blob_that_cannot_be_linked_is_copiedunder Proton-GE11-16 on this Linux filesystem: 1 passed, 171 filtered.Checklist (docs/AGENTS.md)
docs/TASKS.mdnot edited (rule 29/31)unsafeor translator output changed (rules 2/9b/35/36/27)@vktory6 on GitHub · 2026-12-01 14:37 UTC · original
Merged as
a978616, thanks! Two changes on my side before merging: the injected failure now goes through the sameor_elseas a real one (a separateifbranch was a second copy path, rule 33), and the hook is per thread, since tests run in parallel and a global flag could change another test's path. The task is updated:github.com/vktory6/VKtory@3ec9e3d