GPU: rename the second test module in host.rs so the tests compile #129
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/129"
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 Marvisak/VIctory. Originally posted by Luislariosss on 2026-11-24T00:46:26Z.
cargo test --workspacedoes not compile onmain:host.rsdeclares#[cfg(test)] mod teststwice: one near the top (the warp adapter test) and one at the end (theBatch::texture_duetests). They arrived in different merges, and rustc stops the crate before running anything.Fix
The second block only touches
Batch, so it becomesmod batchand keeps both of its tests. One line, no test bodies changed.Verified
I found this while checking that the tree still builds without the game, which is the state a contributor needs before touching anything. AI-assisted.
Imported from Marvisak/VIctory. Originally posted by raffclar on 2026-11-24T00:52:22Z.
Review: APPROVED
Yep this sorts it
upstream-sync referenced this pull request2026-11-24 06:51:35 +00:00
upstream-sync referenced this pull request2026-11-24 06:51:35 +00:00
upstream-sync referenced this pull request2026-11-24 06:51:39 +00:00
Imported from Marvisak/VIctory. Originally posted by TheHoracio on 2026-11-24T00:48:38Z.
Tested on AMD RDNA3: RX 7800 XT (16 GB), driver 32.0.32015.7029, Ryzen 7 9800X3D, Windows 11 Pro 10.0.26300, toolchain 1.98.1 from
rust-toolchain.toml, debug build. No game data was used.main9aef3d9:cargo test --workspacefails with the sameE0428incrates\victory-gpu\src\host.rs:1974.7102a49(on8a8a38d):cargo test --workspace263 passed, 0 failed, 4 ignored.host::batch::a_texture_is_checked_once_per_submissionandhost::tests::warp_adapter_accepts_only_softwareboth pass.main9aef3d9: merges cleanly, 264 passed, 0 failed, 4 ignored.Not tested: clippy,
cargo xtask policy, a release build of the tests.AI use: Claude Code ran the commands and drafted this comment; the runs are real runs on the hardware above.
Imported from Marvisak/VIctory. Originally posted by lordon1a on 2026-11-24T00:51:41Z.
Verified
7102a4989on Windows 11 (x86_64-pc-windows-gnullvm,rustc 1.100.0, applied cleanly tomain@4c0bb89): pass.cargo xtask policy: 151 files okcargo test -p victory-gpu: 43 passed, 0 failed, 1 ignored (fixes the E0428 duplicatemod testsbuild failure onmain@4c0bb89).AI-assisted.