PE tests: read a synthetic import library so ImportLibrary is covered #268
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!268
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/268/head"
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?
@SkippySteve on GitHub · 2026-11-24 01:55 UTC · original
SkippySteve/victory-pr-own-next9→main· +114 −0 · 1 files · 1 commits · closed without mergingcrates/victory-pe/src/implib.rs(the reader behindvictory lib-exports) had no tests. This adds two. Each builds an in-memory!<arch>archive of short-format import objects, so the tests need no SDK.liband no game data and run on every host._Prefixed→Prefixed), undecorated (_Stdcall@8→Stdcall) and by ordinal. Each export keeps its code/data/const kind. The output is sorted. A repeat of an export under a different hint becomes one entry, because the hint is not part of the key. A member that is not a short import object is counted inother_membersinstead of being dropped.This is a test-only change; no library code changes.
Testing on Linux:
cargo test -p victory-pe implib: 2 passed.cargo clippy -p victory-pe --all-targets -- -D warnings: clean.cargo fmt --check: clean.cargo xtask policy: ok.The other four
image::testsfailures undercargo test -p victory-peon Linux already fail onmain, because those tests parse the host test binary as a PE. #257 deals with them, and this PR does not touch them.@SkippySteve on GitHub · 2026-11-24 02:27 UTC · original
superseded by #287 (combined PE/loader hermetic synthetic tests)
Pull request closed