Repository navigation
Conversation
…#1950) Ported from upstream VIctory commit e308f08 (pull request #1950, prism): the kernel, no-DLL-planting and load-probe tests copied version.dll/urlmon by a hardcoded C:\Windows path, so they failed on a host whose Windows folder is elsewhere (another drive, an install not on C:). They now use %SystemRoot% (one host_dll helper in load_probe). Test-only; no product code changed. cargo check -p victory-hle/--all-targets and -p victory-loader --all-targets: clean; cargo test -p victory-hle --test no_dll_planting: 1 passed; cargo test -p victory-hle --lib kernel: 4 passed; clippy on both crates --all-targets -- -D warnings: clean.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The kernel lookup test, the no-DLL-planting test and the loader fixture tests copy a real DLL from a hardcoded C:\Windows\System32 path. On a host whose Windows folder is not on C: (another drive, a custom install) the tests fail for a reason unrelated to the code under test, and the Windows runner is only one example of a host where C:\Windows is not guaranteed.
Upstream VIctory fixed this in commit e308f08 (pull request #1950, by prism); this is that fix ported to the fork.
Change
Tests
(CI note: the check job on main is currently red on the asset-policy violation; #1322 fixes that, after which this can be rebased.)