[pr-tests][linux-proton] Tests: the late DLL tests load a copy of version.dll that Wine does not take for its builtin #363
Loading…
Reference in a new issue
No description provided.
Delete branch "ntsthay/wine-late-dll"
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?
Tests only. Nothing here runs in the game.
Contributor role (optional)
What it changes
The four
run::tests::late_dll_*tests build their title DLLs from a copy ofSystem32\version.dllwith a tag appended. Under Wine (Proton on Linux), that file is Wine's own builtin and carries the markWine builtin DLLright after the DOS header. Wine's loader answers any file with that mark with the builtin it already has loaded. So every copy became the sameVERSION.dllmodule, at the same base, andFreeLibrarynever unmapped it.Measured on
f3840d7: after the bind failure, both the "dep" and the "top" image had base0x6ffffeff0000, andGetModuleHandleExWfrom that address namedC:\windows\system32\VERSION.dll. The test then failed with "dep remained mapped after bind failure".write_unique_dllnow clears that mark in the copy, so each copy loads as a DLL of its own, as it does on Windows. Windows'version.dllhas no such mark, so on Windows the bytes and the tests are the same as before.How it was tested
3e9bf0e, this branch onf3840d7.cargo nextest run -p darner -E 'test(late_dll_)'under Proton (proton-cachyos, RTX 4080): 4 passed; onf3840d7all 4 fail. The wholedarnercrate: 158 passed. The 2 that fail arewindows_is_not_wineanda_copy_of_windows_own_direct3d_12_is_set_aside_for_system32s, which fail onf3840d7too and are fixed in #354.cargo clippy -p darner --all-targets --locked -- -D warningsis clean. Gate 3 ran under Wine, not on Windows.Checklist
main.docs/asset-policy.md.Checked for overlap
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.