Skip to content

test(home): match candidates path with native separator - #464

Closed
chloe41427[bot] wants to merge 1 commit into
masterfrom
fix/windows-home-path-separator
Closed

chloe41427[bot] wants to merge 1 commit into
masterfrom
fix/windows-home-path-separator

Conversation

@chloe41427

@chloe41427 chloe41427 Bot commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Fixes Windows CI failure in run 40045254057.

tests/home.rs hardcoded forward slashes in the expected stdout for should_successfully_display_current_candidate_home and should_keep_value_plain_under_clicolor_force. On Windows, home prints the path via PathBuf::display(), which uses \, so the assertions failed there (same root cause already fixed for tests/helpers.rs in a390df9).

Builds the expected path with Path::join instead, matching the native separator.

Signed-off-by: Chloe41427[bot] <chloe@sdkman.io>
@chloe41427

chloe41427 Bot commented Oct 24, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #465: Windows binaries should print forward slashes, not adapt the tests to backslashes.

@chloe41427 chloe41427 Bot closed this Oct 24, 2026
@chloe41427
chloe41427 Bot deleted the fix/windows-home-path-separator branch October 24, 2026 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants