Skip to content

test: use a platform-appropriate absolute path in normalize_cli_path …#582

Merged
trypsynth merged 1 commit into
trypsynth:masterfrom
mikolysz:absolute-path
Jul 8, 2026
Merged

test: use a platform-appropriate absolute path in normalize_cli_path …#582
trypsynth merged 1 commit into
trypsynth:masterfrom
mikolysz:absolute-path

Conversation

@mikolysz

@mikolysz mikolysz commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

…test

normalize_cli_path_handles_absolute_and_relative hardcoded C:\nonexistent_abs_path as its absolute-path input, but Path::is_absolute only treats drive-letter paths as absolute on Windows; on macOS the path counts as relative and gets joined onto the cwd, failing the assertion. The test had never actually run on macOS before because the whole test target failed to compile until the preceding commit.

Pick the absolute path per platform via cfg so the test exercises the same behavior everywhere.

…test

normalize_cli_path_handles_absolute_and_relative hardcoded
C:\nonexistent_abs_path as its absolute-path input, but Path::is_absolute
only treats drive-letter paths as absolute on Windows; on macOS the path
counts as relative and gets joined onto the cwd, failing the assertion.
The test had never actually run on macOS before because the whole test
target failed to compile until the preceding commit.

Pick the absolute path per platform via cfg so the test exercises the
same behavior everywhere.
@trypsynth trypsynth merged commit da5bb9d into trypsynth:master Jul 8, 2026
5 checks passed
@mikolysz mikolysz deleted the absolute-path branch July 9, 2026 10:28
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.

2 participants