Skip to content

Fix case mismatch in test error message expectation #66138

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
merged 1 commit into from
May 25, 2023
Merged

Fix case mismatch in test error message expectation #66138

merged 1 commit into from
May 25, 2023

Conversation

tristanlabelle
Copy link
Contributor

test/Distributed/distributed_actor_ban_owned_shared.swift expects a test error message with a casing mismatch, so the test fails. This fixes it.

See other test expecting the same message:
https://github.com/apple/swift/blob/56fca834b2e3b2fe34b97a3998bb7d159edb7775/test/Parse/ownership_modifiers.swift#L21
See error message definition:
https://github.com/apple/swift/blob/56fca834b2e3b2fe34b97a3998bb7d159edb7775/include/swift/AST/DiagnosticsSema.def#L7158

@tristanlabelle tristanlabelle requested a review from ktoso as a code owner May 25, 2023 17:58
@compnerd
Copy link
Member

@swift-ci please smoke test

Copy link
Contributor

@ktoso ktoso left a comment

Choose a reason for hiding this comment

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

LGTM if this passes but it's another case of "I have no idea what our CI is doing"

since this has exactly passed specifically with the upper case C: #66119

@drexin
Copy link
Contributor

drexin commented May 25, 2023

@swift-ci smoke test macos

@ktoso
Copy link
Contributor

ktoso commented May 25, 2023

The same race happened on release/5.9, I picked the fix over: #66154

@ktoso
Copy link
Contributor

ktoso commented May 25, 2023

I forgot to explicitly thank for the fix -- thank you @tristanlabelle !

@DougGregor DougGregor merged commit 77a6690 into swiftlang:main May 25, 2023
@tristanlabelle tristanlabelle deleted the patch-1 branch May 26, 2023 12:32
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