Tests: expand low_va integration tests for PE header and directory invariants #2167
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2167
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2167"
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?
@heditrigui on GitHub · 2026-11-25 07:01 UTC · original
heditrigui:tests/low-va-and-pe-invariants-suite→main· +58 −2 · 1 files · 1 commits · openSummary
Expands link-time validation in
crates/xcl/tests/low_va.rsto verify essential PE characteristics ofxcl.exe:xcl.exeis built withIMAGE_FILE_LARGE_ADDRESS_AWARE(0x0020) and configured withIMAGE_SUBSYSTEM_WINDOWS_CUI(3) for the AMD64 architecture.DIR_TLS= 9) is present and non-empty, ensuring the host mode TLS callback (.CRT$XLY) is preserved by the linker.DIR_EXCEPTION= 3) is present and non-empty for x64 stack unwinding.Tested
python -m pytest scripts/(25 passed in 0.58s).scripts/pr_check.py --local.Not tested
tests/integration suites are non-runtime code).AI use
@DavidM1911 on GitHub · 2026-11-25 07:20 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
@raylitebull on GitHub · 2026-11-25 10:48 UTC · original
Code review on
fa26aa7:xcl_exe_is_linked_with_large_address_aware_and_cui_subsystemandxcl_exe_contains_valid_tls_and_exception_directoriesincrates/xcl/tests/low_va.rscleanly verifies PE link characteristics (LARGE_ADDRESS_AWARE, CUI subsystem,.CRT$XLYTLS,.pdataexception directory), with both CI checks green.Remaining before merge: Independent verification on
fa26aa7(currently has@DavidM1911--libonly, which doesn't execute integration test targets like--test low_va).@tiagonleal on GitHub · 2026-11-25 12:32 UTC · original
Verification on NVIDIA RTX 5070 Ti (Windows 11), head
fa26aa785d51878afc6b95087fefd5253c0d58afTested
fa26aa785d51878afc6b95087fefd5253c0d58af(git rev-parse HEADof a clean worktree, no local changes, built as is). The PR was open and the head unchanged when I started and again before writing this.cargo testdefault).crates/xcl/tests/low_va.rs, so I ran that target and not--lib:cargo test -p xcl --test low_va -- --test-threads=4 --nocapture: 3 passed, 0 failed, 0 ignored (about 20 s including an incremental build). Tests:xcl_exe_is_linked_with_large_address_aware_and_cui_subsystem,xcl_exe_is_linked_without_high_entropy_va,xcl_exe_contains_valid_tls_and_exception_directories. The earlier verification in the thread ran only--lib, which does not execute this target.SKIPPEDlines in the output.Not tested
cargo test --workspace,--liband the other test targets; release profile; Developer Mode on (off here); the retail game andxcl-smoke.AI use
Run and written with Claude Code (Claude Fable 5.2 and Claude Sonnet 5.5).
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.