Skip to content

Generalize test to handle the compiler's new diagnostic printing style #7368

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

Merged

Conversation

DougGregor
Copy link
Member

Motivation:

The regular expression matching the compiler's output depends on the existing "LLVM" diagnostic style, and does not work with the new "Swift" style.

Modifications:

Split regex into two independent pieces.

Result:

The test succeeds with both compiler diagnostic styles.

@DougGregor
Copy link
Member Author

@swift-ci please test

@DougGregor
Copy link
Member Author

@swift-ci please test Windows

@DougGregor DougGregor merged commit f533e1b into swiftlang:main Feb 25, 2024
@DougGregor DougGregor deleted the generalize-compiler-error-test branch February 25, 2024 00:42
furby-tm pushed a commit to wabiverse/swift-package-manager that referenced this pull request May 15, 2024
furby-tm pushed a commit to wabiverse/swift-package-manager that referenced this pull request May 15, 2024
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