Tests: the five that read the test binary as a PE image are ignored off Windows #4932
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!4932
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4931"
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?
@illuminatedfellow on GitHub · 2026-12-01 14:32 UTC · original
illuminatedfellow:linux-tests-skip-pe-self-read→main· +5 −0 · 2 files · 1 commits · openOn Linux (see
docs/linux-proton.md),cargo test -p victory-pe -p victory-loaderwas never green: five tests use the test executable itself as their sample MSVC-linked PE32+ image, and there the test binary is an ELF file, so all five failed withUnknown file magic.victory-pe:parses_own_test_binary,rva_to_file_offset_maps_entry_point,rva_to_file_offset_rejects_offsets_past_4_gib,rejects_iat_outside_imagevictory-loader:title_patches_check_before_they_writeThey are now ignored outside Windows, with the reason attached (
#[cfg_attr(not(windows), ignore = "...")]). On Windows nothing changes: they still run.On Linux:
victory-pe32 passed, 4 ignored;victory-loader11 passed, 1 ignored (they were 4 and 1 failed). Test attributes only, no code change.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.