Skip to content

test(regressions): support mixed Windows/Unix path separators in JSON assertions - #573

Merged
LunaStev merged 1 commit into
wavefnd:masterfrom
Visio-Vanitas:fix/freebsd-mixed-path-assertion
Sep 11, 2026
Merged

LunaStev merged 1 commit into
wavefnd:masterfrom
Visio-Vanitas:fix/freebsd-mixed-path-assertion

Conversation

@Visio-Vanitas

Copy link
Copy Markdown
Contributor

Summary

Improve json_contains_path_components in tests/codegen_regressions.rs to properly normalize mixed path separators and escaped delimiters when asserting against compiler/linker plan JSON outputs.

Motivation

Resolves #504. In Windows test environments, link plans generated for FreeBSD targets can contain mixed path separators in CRT arguments that failed rigid forward-slash or backslash-only matching assertions.

Target and compatibility impact

None (test suite assertion helper improvement only).

Validation

  • Ran cargo test --test codegen_regressions on modified test cases.
  • Validated with Unix, Windows, and mixed separator paths.

Checklist

  • Commits include a DCO Signed-off-by line.
  • Tests cover new behavior or the PR explains why no test is needed.
  • User-facing changes include documentation or diagnostics updates.
  • The change preserves the license boundary between the compiler and std/.

@LunaStev

Copy link
Copy Markdown
Member

LGTM, Thanks!

@LunaStev
LunaStev merged commit 49c74c3 into wavefnd:master Sep 11, 2026
22 of 26 checks passed
@Visio-Vanitas

Copy link
Copy Markdown
Contributor Author

Happy to help! Thanks for the quick review and merge.

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.

Handle mixed Windows path separators in FreeBSD link-plan regression assertions

2 participants