Skip to content

Make the ExitTest type move-only. #712

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 18, 2024
Merged

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented Sep 18, 2024

This PR adds ~Copyable to ExitTest, which is a tools-only bit of SPI representing a (gasp) exit test. This change has the effect of making it impossible to accidentally invoke an exit test body in the parent process, and also impossible to accidentally invoke twice in the child process. Phew!

Checklist:

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

This PR adds `~Copyable` to `ExitTest`, which is a tools-only bit of SPI
representing a (gasp) exit test. This change has the effect of making it
impossible to accidentally invoke an exit test body in the parent process, and
also impossible to accidentally invoke twice in the child process. Phew!
@grynspan grynspan added enhancement New feature or request tools integration Integration of swift-testing into tools/IDEs exit-tests ☠️ Work related to exit tests labels Sep 18, 2024
@grynspan grynspan self-assigned this Sep 18, 2024
@grynspan
Copy link
Contributor Author

@swift-ci test

@grynspan grynspan merged commit aa427e7 into main Sep 18, 2024
3 checks passed
@grynspan grynspan deleted the jgrynspan/exit-test-move-only branch September 18, 2024 22:07
@grynspan grynspan added this to the Swift 6.1 milestone Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request exit-tests ☠️ Work related to exit tests tools integration Integration of swift-testing into tools/IDEs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants