four longroad-pe tests fail on a Linux host build; gate them on Windows #3
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Lesloo--longroad!3
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3"
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?
@Headache3318 on GitHub · 2026-12-03 04:00 UTC · original
Headache3318:pe-tests-host-independent→main· +19 −3 · 1 files · 1 commits · merged 2026-12-03 10:25 UTCWhat.
cargo test -p longroad-peon a Linux host build turns four tests red at head87feabed8efd2c7879181cf007f2d049db961648. This gates the four that read the test binary itself as a PE image, so a Linux host build is green and the Windows build still runs every one of them.Why it fails — nothing GPU, Wine or title-side:
own_image()readsstd::env::current_exe()and its comment says the test binary is "a real MSVC-linked PE32+ image". That is true only for a Windows build of the tests. Built for the Linux host the same file is ELF, soImageInfo::parseanswersUnknown file magicbefore the rva / import-table checks these tests are about can run. The four that read their image throughown_image()panic there:Measured here (Arch Linux, kernel 7.3.6-arch1-2, 8 cores,
rustc 1.98.1pinned byrust-toolchain.toml,cargo 1.98.1,--locked, host targetx86_64-unknown-linux-gnu):cargo test --locked -p longroad-pe87feabedas pushed32 passed; 4 failedcargo test --locked -p longroad-pe32 passed; 0 failedCARGO_TARGET_X86_64_PC_WINDOWS_MSVC_RUNNER=wine cargo xwin test --locked -p longroad-pe --lib --target x86_64-pc-windows-msvc36 passed; 0 failedSo the Windows path loses nothing: cross-built with
cargo-xwin 0.24.2(clang 23.1.5,ld.lld23.1.5), thex86_64-pc-windows-msvctest binary was run directly under wine 11.23 on this machine and all 36 tests — including the four gated here — pass.Clean for reference at the same head, Linux host, same machine,
--locked:longroad-formats47 passed; 5 ignored; 0 failed,longroad-core16 passed; 0 failed,longroad-pipeline7 passed; 0 failed. This is the only place where a host build turns the suite red, and the repository has no CI workflow that would have caught it (.github/holds only the issue templates).rejects_garbage_without_panickingkeeps its two platform-independent garbage checks on every host and gates only the truncated-image check, which is the part that needs a real PE. No title files anywhere: everything is the crate's own test data, perdocs/asset-policy.md.AI-assisted (Hermes Agent, Nous Hermes; measured and reviewed on one machine).