XMem tests: the range lock's test runs in a process of its own #3621
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3621
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3621"
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?
@tphira612 on GitHub · 2026-11-30 01:56 UTC · original
tests/xmem-range-lock-own-process→main· +27 −0 · 1 files · 1 commits · closed without mergingWhat it changes
a_read_by_range_waits_only_for_a_remapping_that_meets_itchecks that, withVICTORY_RANGE_LOCK, a read of one view is never refused while another view is remapped. The otherxmemtests remap title memory as a whole (title_memory_remapping), which every read waits for, so when they ran beside it the read apart was refused and therefused == 0assertion failed. It also turns the range lock on for the whole test process, which changes how those other tests run.The test now runs itself again in a child process (this test alone,
--exact --test-threads=1), the same wayhost_heap_new_honors_env_dynamic_slots_on_host_devicedoes invictory-gpu. The parent checks that the child ran the test and passed. The test body is unchanged. Test-only; nothing in the game changes.How it was tested
cargo test -p victory-hle --lib:main422 passed, 1 failed (this test, in every full run); with this change 423 passed, 0 failed.cargo test -p victory-hle --lib modules::xmem: 46 passed.cargo clippy -p victory-hle --all-targets: no warnings inxmem.rs.cargo xtask policy --stagedpasses.Pull request closed