xmem: skip the two graphics-reservation tests under Miri #658

Closed
NickStallman wants to merge 1 commit from upstream-pr/658 into main
NickStallman commented 2026-12-02 19:02:13 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-12-02T19:02:13Z.


The Miri job on main has failed since 1b4ed472: a_graphics_reservation_the_cpu_cannot_map_is_still_gpu_address_space reaches VirtualAlloc2 through virtual_alloc, which Miri cannot emulate (runtime/xmem/src/virtual_memory.rs:627). a_released_graphics_reservation_loses_its_id_and_a_smaller_one_does_not_take_it makes the same call and would fail next, since Miri stops at the first unsupported call.

Both now carry #[cfg_attr(miri, ignore = "calls VirtualAlloc2, which Miri cannot emulate")], like the neighbouring tests that allocate. They still run in the normal Rust test job.

Checked: rustfmt --edition 2024 --check on the file. Not run locally: Miri itself. This PR's own CI run will show it.

🤖 Generated with Claude Code

<!-- greyfinch-sync:brcly/TuxBox:issue:5612867270 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/658). Originally posted by [NickStallman](https://github.com/NickStallman) on 2026-12-02T19:02:13Z. --- The Miri job on `main` has failed since 1b4ed472: `a_graphics_reservation_the_cpu_cannot_map_is_still_gpu_address_space` reaches `VirtualAlloc2` through `virtual_alloc`, which Miri cannot emulate (`runtime/xmem/src/virtual_memory.rs:627`). `a_released_graphics_reservation_loses_its_id_and_a_smaller_one_does_not_take_it` makes the same call and would fail next, since Miri stops at the first unsupported call. Both now carry `#[cfg_attr(miri, ignore = "calls VirtualAlloc2, which Miri cannot emulate")]`, like the neighbouring tests that allocate. They still run in the normal Rust test job. Checked: `rustfmt --edition 2024 --check` on the file. Not run locally: Miri itself. This PR's own CI run will show it. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
NickStallman commented 2026-12-02 21:19:27 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-12-02T21:19:27Z.


Closing: 7b308cd4 ("Fix Miri") adds the same two skips, so this is no longer needed. Thanks!

<!-- greyfinch-sync:brcly/TuxBox:comment:7359117100 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/658#issuecomment-7359117100). Originally posted by [NickStallman](https://github.com/NickStallman) on 2026-12-02T21:19:27Z. --- Closing: 7b308cd4 ("Fix Miri") adds the same two skips, so this is no longer needed. Thanks!
brcly commented 2026-12-02 21:22:28 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by brcly on 2026-12-02T21:22:28Z.


I only saw this PR after pushing the fix, sorry!

<!-- greyfinch-sync:brcly/TuxBox:comment:7359187675 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/658#issuecomment-7359187675). Originally posted by [brcly](https://github.com/brcly) on 2026-12-02T21:22:28Z. --- I only saw this PR after pushing the fix, sorry!

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
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.

Reference
brcly/TuxBox!658
No description provided.