Skip to content

Conversation

@j-hui
Copy link
Contributor

@j-hui j-hui commented Dec 17, 2025

Checking errors with FileCheck is fragile (because of line numbers) and difficult to follow.

@j-hui
Copy link
Contributor Author

j-hui commented Dec 17, 2025

@swift-ci please smoke test

@j-hui
Copy link
Contributor Author

j-hui commented Dec 17, 2025

@susmonteiro @Xazax-hun It might also be a good idea to split up this test. It's quite difficult to read, and a bit slow to run because of the dependency on std::optional and std::vector.

But I'll leave it up to y'all since you were the ones who actually wrote this test (-:

I just need this patch because my ongoing work elsewhere (#86048) apparently changes one of the error messages and I am having a really hard time telling whether the new diagnostic behavior should be expected.

Copy link
Contributor

@Xazax-hun Xazax-hun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot! This was long overdue and I wanted to get to it but always got distracted with something else. This is a huge improvement!

I have mixed feelings about splitting it up though. The more slightly related test files we have the harder to find the test case we are looking for or to figure out where to put new tests.

Copy link
Contributor

@susmonteiro susmonteiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks John!

@j-hui j-hui enabled auto-merge December 17, 2025 10:56
Copy link
Contributor

@egorzhdan egorzhdan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@j-hui
Copy link
Contributor Author

j-hui commented Dec 17, 2025

ah yes, I forgot about Windows.... I just need %{fs-sep}

Checking errors with FileCheck is fragile (because of line numbers) and
difficult to follow.
@j-hui j-hui force-pushed the verify-nonescapable-errors branch from bb18f81 to 9ae5348 Compare December 17, 2025 14:33
@j-hui
Copy link
Contributor Author

j-hui commented Dec 17, 2025

@swift-ci please smoke test

@j-hui
Copy link
Contributor Author

j-hui commented Dec 17, 2025

@swift-ci please smoke test windows platform

@j-hui j-hui merged commit fb3f044 into swiftlang:main Dec 18, 2025
3 checks passed
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.

5 participants