Tests: cover mapped module table, lock-free lookup, and HLE handles #1483
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!1483
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1483"
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?
@amazedturnip on GitHub · 2026-11-24 16:48 UTC · original
amazedturnip:xcl/tests-modules-table-registration-lookup-and-hle--011856→main· +158 −0 · 1 files · 1 commits · openAdd integration tests in
crates/xcl/tests/modules_table.rscoveringcrates/xcl/src/modules.rs(mapped module registration/unregistration, lock-freeimage_base_for_addrlookup,set_main/main_module, HLE pseudo-handles, anddescribe_addressfor mapped and host modules). Previously only 2 inline unit tests coveredmodule_offsetand arbitrary stack words.What is in it
crates/xcl/tests/modules_table.rs: add 5 integration tests coveringMappedModule::contains,register_mapped/unregister_mapped, lock-freeimage_base_for_addr,find_mapped_by_{name,base,addr},set_main/main_module,hle_handle/find_hle_handle/hle_name_by_handle, anddescribe_addressfor mapped and host modulesTested
AMD Radeon(TM) Graphics (driver 32.0.21043.19003, DXC 1.9.2609, native wave64),XCL_ADAPTER=radeon):cargo test --workspace -- --test-threads=2— 775 passed, 0 failed, 41 ignored (SKIPPED GPU tests: none)Not tested
AI use
Add integration tests in crates/xcl/tests/modules_table.rs exercising crates/xcl/src/modules.rs: MappedModule::contains bounds, register_mapped/unregister_mapped, lock-free image_base_for_addr, find_mapped_by_{name,base,addr}, set_main/main_module, hle_handle/find_hle_handle/hle_name_by_handle, and describe_address on mapped and host modules.@dcastell1 on GitHub · 2026-11-24 16:55 UTC · original
Verified on Windows 11 10.0.26300, NVIDIA GeForce RTX 5090 (driver 621.24), Rust 1.100.0 MSVC 14.44.35207, debug build, on
main@b7aa9f3(baseline 770 passed, 0 failed, 41 ignored on this box):Five more passing tests than the baseline: the mapped module table and its lock-free lookup ship real coverage and it runs green.
Tree restored afterwards (full diff against a clean checkout), hardware adapter, no Wine, no game data. AI-assisted (opencode): applied the patch to a built tree, ran the suite, reverted it.
@futurepro62 on GitHub · 2026-11-24 17:18 UTC · original
An AMD run to go with the RTX 5090 report above. Tested exact head
84e7d21(on its baseb7aa9f3).Tested
XCL_ADAPTER=radeon cargo test --workspace -- --test-threads=4: 775 passed, 0 failed, 41 ignored, nothing skipped.XCL_REQUIRE_GPU=mesh: 775 passed, 0 failed (the usual two wave64-only skips).AI use
@DavidM1911 on GitHub · 2026-11-24 18:53 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
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.