XMem tests: the range lock's test runs in a process of its own #3621
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tphira612 on 2026-11-30T01:56:08Z.
What 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