Skip to content

Fix line and path separators in test #23534

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

som-snytt
Copy link
Contributor

@som-snytt som-snytt commented Jul 16, 2025

Fixes #23458

Splitting on NL leaves the CR if present. Just use linesIterator.

Introduce a template method for rendering paths. The test reporter replaces windows convention.

Previously, a TestReporter with empty console output would contribute a NL because "".split("\n") is not empty. (There is a test reporter per compilation group.)

@som-snytt
Copy link
Contributor Author

som-snytt commented Jul 16, 2025

A NL is dropped from check files of bootstrapped neg-macros but it's not obvious how to supply the update flag.

Edit: just scala3-bootstrapped/testCompilation --update-checkfiles and not testOnly.

@som-snytt som-snytt force-pushed the issue/23458-update-check branch from db2c829 to 31b4fd4 Compare July 16, 2025 15:27
@som-snytt
Copy link
Contributor Author

Spurious windows_fast failure.

@som-snytt som-snytt force-pushed the issue/23458-update-check branch from 31b4fd4 to c6fa07f Compare July 17, 2025 12:41
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.

--update-checkfiles generates double line breaks on Windows?
1 participant