Tests: gate own-PE binary tests to Windows and clean non-Windows test warnings #192

Open
github-bot wants to merge 1 commit from github-bot/gh-192 into main AGit
Owner

@⁠gdawid9407 on GitHub · 2026-11-24 22:22 UTC · original
gdawid9407:fix/non-windows-tests → main · +15 −3 · 2 files · 1 commits · open

victory-pe unit tests reading std::env::current_exe() assume the test runner binary is a PE32+ image, panicking on Mach-O/ELF hosts when running offline crate tests on macOS or Linux. Gate the own_image() tests to target_os = "windows" and #[cfg(windows)]-gate Windows-only test imports/bindings in victory-shader so both Windows CI and non-Windows hosts pass clippy --all-targets -- -D warnings and cargo test.

**@⁠gdawid9407** on GitHub · 2026-11-24 22:22 UTC · [original](https://github.com/fxceless/victory-fork/pull/192) `gdawid9407:fix/non-windows-tests` → `main` · +15 −3 · 2 files · 1 commits · open `victory-pe` unit tests reading `std::env::current_exe()` assume the test runner binary is a PE32+ image, panicking on Mach-O/ELF hosts when running offline crate tests on macOS or Linux. Gate the `own_image()` tests to `target_os = "windows"` and `#[cfg(windows)]`-gate Windows-only test imports/bindings in `victory-shader` so both Windows CI and non-Windows hosts pass `clippy --all-targets -- -D warnings` and `cargo test`.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:37:55 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/192/head:github-bot/gh-192'
git switch 'github-bot/gh-192'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-192'
git switch 'github-bot/gh-192'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-192'
git switch 'github-bot/gh-192'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-192'
git switch 'main'
git merge --squash 'github-bot/gh-192'
git switch 'main'
git merge --ff-only 'github-bot/gh-192'
git switch 'main'
git merge 'github-bot/gh-192'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.