net: skip newer-Windows-only exports in only_loopback_is_reachable #152
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/152"
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?
Imported from Marvisak/VIctory. Originally posted by Makto94 on 2026-11-24T00:59:03Z.
Fixes #118.
only_loopback_is_reachableasserts that every HLE override names a real export of its host DLL.WinHttpGetProxySettingsExis absent from Windows 10'swinhttp.dll; the HLE supplies it itself (registry lookup runs before host resolution,lib.rsresolve), so the test panicked there for no real problem.This adds a small allow-list of newer-Windows-only exports and skips them only when the host lacks them. Every other export is still checked, so a typo in an override name still fails the test (a blanket
continueon any missing export would hide that).Tested on Windows 11 with the pinned 1.98.1 toolchain:
cargo test -p victory-hle --lib→ 86 passed, 0 failedcargo clippy -p victory-hle --tests→ no warnings innet.rsrustfmt --checkclean onnet.rsNot yet run on Windows 10 itself; the issue author's environment would confirm.
Imported from Marvisak/VIctory. Originally posted by DaviTostes on 2026-11-24T01:25:04Z.
Tested
fff664dunder Wine 11.22 + vkd3d-proton 3.1 (Arch Linux x86_64, AMD RX 9060 XT, RADV 26.3.1), Windows build ofvictory-hle: the Windows 10 case is fixed, but Wine still fails on a different export.victory_hle: 85 passed, 1 failed. The failure is stillonly_loopback_is_reachable: Wine'sws2_32is missingWSAConnectByList, so the allow-list (WinHttpGetProxySettingsExonly) does not cover it. If keeping the HLE suite green under Wine matters, addingWSAConnectByListtoNEWER_WINDOWS_ONLYwould do it; the test correctly still catches the missing-export case on Windows.No game data used.
Imported from Marvisak/VIctory. Originally posted by derinsh0 on 2026-11-24T01:59:12Z.
Can confirm this resolved an error with winhttp.dll on Windows 10.
Previous result:
Passes building the tests with these changes.
#256 is a dupe with a minor variation in implementation.
Imported from Marvisak/VIctory. Originally posted by erLCoder on 2026-11-24T06:25:50Z.
Tested PR head
18b2716a2con Windows 10 Enterprise 22H2 (winhttp.dll 10.0.19041.4522), Rust 1.98.1.cargo test --offline --locked -p victory-hle --features diagnostics --lib -- --nocapture --test-threads=1passed 86/86, includingonly_loopback_is_reachable, with no skipped or filtered tests. The prior upstream build had failed that test becauseWinHttpGetProxySettingsExis missing on this Windows installation.No game launch was involved. AI-assisted test report.
Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T07:21:32Z.
Review: COMMENTED
Tested
18b2716on Windows 11, RTX 5070, MSVC. On this branchcargo test --workspacedoesn't compile:E0428: the name tests is defined multiple timesincrates/victory-gpu/src/host.rs. That is the duplicate test module #129 fixed on main after this branch was cut, so it is not caused by this change.The logic is right. It skips the allow-listed export only when the host really lacks it, and still asserts everything else, so a typo in an override still fails. It is also slightly stricter than #349, which skips
WinHttpGetProxySettingsExeven on a host that has it.#349 and this PR fix the same #118 in the same lines and will conflict. #256 is a third attempt, and it makes the assert unreachable. Maintainers should pick one. Of the two correct ones, this one's "skip only if absent" is the better check.
AI-assisted (Claude Code).