Skip to content

Fix macro expansion failure for a non-copyable suite type with a test method. #739

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
Sep 30, 2024

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented Sep 29, 2024

If a non-copyable suite type has a test function whose name starts with test, we emit a call to __invokeXCTestCaseMethod() that's a no-op (but we can't tell during macro expansion if it will be.) This function needs to be updated to accept a non-copyable generic type.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

…t` method.

If a non-copyable suite type has a test function whose name starts with `test`,
we emit a call to `__invokeXCTestCaseMethod()` that's a no-op (but we can't tell
during macro expansion if it will be.) This function needs to be updated to
accept a non-copyable generic type.
@grynspan grynspan added the bug 🪲 Something isn't working label Sep 29, 2024
@grynspan grynspan self-assigned this Sep 29, 2024
@grynspan grynspan added this to the Swift 6.1 milestone Sep 29, 2024
@grynspan
Copy link
Contributor Author

@swift-ci test

@grynspan grynspan merged commit f5b64a3 into main Sep 30, 2024
3 checks passed
@grynspan grynspan deleted the jgrynspan/__invokeXCTestCaseMethod-non-copyable branch September 30, 2024 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants