Skip to content

FoundationEssentialTests: nanosleep is not portable, avoid it #599

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 9, 2024

Conversation

compnerd
Copy link
Member

@compnerd compnerd commented May 9, 2024

Use Thread.sleep(forTimeInterval:) instead of nanosleep which is not a portable sleep primitive. This allows us to build the package tests on Windows.

@compnerd
Copy link
Member Author

compnerd commented May 9, 2024

@swift-ci please test

@compnerd
Copy link
Member Author

compnerd commented May 9, 2024

@swift-ci please test

Use `Thread.sleep(forTimeInterval:)` instead of `nanosleep` which is not
a portable sleep primitive. This allows us to build the package tests on
Windows.
@compnerd
Copy link
Member Author

compnerd commented May 9, 2024

@swift-ci please test

@compnerd compnerd requested a review from jmschonfeld May 9, 2024 19:30
@compnerd compnerd merged commit 019d081 into swiftlang:main May 9, 2024
@compnerd compnerd deleted the nanosleep branch May 9, 2024 20:30
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