XMem tests: the range lock's test runs in a process of its own #3621

Closed
github-bot wants to merge 1 commit from github-bot/gh-3621 into main AGit
Owner

@⁠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 merging

What it changes

a_read_by_range_waits_only_for_a_remapping_that_meets_it checks that, with VICTORY_RANGE_LOCK, a read of one view is never refused while another view is remapped. The other xmem tests 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 the refused == 0 assertion 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 way host_heap_new_honors_env_dynamic_slots_on_host_device does in victory-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: main 422 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 in xmem.rs. cargo xtask policy --staged passes.
**@⁠tphira612** on GitHub · 2026-11-30 01:56 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3621) `tests/xmem-range-lock-own-process` → `main` · +27 −0 · 1 files · 1 commits · closed without merging ## What it changes `a_read_by_range_waits_only_for_a_remapping_that_meets_it` checks that, with `VICTORY_RANGE_LOCK`, a read of one view is never refused while another view is remapped. The other `xmem` tests 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 the `refused == 0` assertion 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 way `host_heap_new_honors_env_dynamic_slots_on_host_device` does in `victory-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`: **`main` 422 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 in `xmem.rs`. `cargo xtask policy --staged` passes.
a_read_by_range_waits_only_for_a_remapping_that_meets_it checks that a
read of one view is never refused while another view is remapped. The
other xmem tests remap title memory as a whole, which every read waits
for, so beside them the read apart was refused: the test failed in every
full run of `cargo test -p victory-hle --lib` on main and passed alone.
It also turns the range lock on for the whole process.

It now runs itself again in a child process (this test alone, one
thread), as host_heap_new_honors_env_dynamic_slots_on_host_device does,
and the parent checks that the child ran it and passed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 01:59:24 +00:00
github-bot closed this pull request 2026-11-30 18:10:39 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!3621
No description provided.