net: skip newer-Windows-only exports in only_loopback_is_reachable #152
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!152
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/152/head"
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?
@Makto94 on GitHub · 2026-11-24 00:59 UTC · original
Makto94:fix/net-test-win10→main· +10 −6 · 1 files · 2 commits · merged 2026-11-24 07:52 UTCFixes #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.
@DaviTostes on GitHub · 2026-11-24 01:25 UTC · original
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.
@derinsh0 on GitHub · 2026-11-24 01:59 UTC · original
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.
@erLCoder on GitHub · 2026-11-24 06:25 UTC · original
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.