Repository navigation
test: expect forward-slash paths in parallel_test on Windows - #265
Open
theprinceraj wants to merge 1 commit into
Open
theprinceraj wants to merge 1 commit into
theprinceraj wants to merge 1 commit into
Conversation
theprinceraj
force-pushed
the
fix/windows-path-separator-tests
branch
from
November 22, 2026 20:10
a63d946 to
86149a6
Compare
Author
|
Coverage failure is unrelated, the job dies on Branch only exists on my fork, so this'll happen on any fork PR. Checking out |
This branch has not been deployed
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.
Fixes #264
yek intentionally outputs
/-separated paths on every platform (normalize_pathinsrc/parallel.rsusesto_slash()). Four tests intests/parallel_test.rsbuilt their expected values withto_string_lossy(), which uses\on Windows, so they always failed there.Changes
test_glob_pattern_single_file,_multiple_files,_nested_directories): build expected paths withpath_slash'sto_slash_lossy(), the same crate yek uses.test_normalize_path_unix_style: it never called yek's code; it tested thenormalize-pathcrate plusto_string_lossy(). It now callsyek::parallel::normalize_path.Only test expectations change, not yek's behavior. On Linux/macOS
to_slash_lossy()returns the same string asto_string_lossy(), so results there are unchanged.Testing (Windows 11)
cargo test --test parallel_test: 21 passed (was 17 passed, 4 failed)cargo fmt --checkandcargo clippy --test parallel_testare clean