Skip to content

Work around test discovery crash when running on older OS versions due to unguarded use of .timeLimit #409

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

stmontgomery
Copy link
Contributor

Fix a test discovery crash when running on older Apple OS versions which don't support Clock and related APIs.

Checklist:

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

@stmontgomery stmontgomery added the bug 🪲 Something isn't working label May 9, 2024
@stmontgomery stmontgomery self-assigned this May 9, 2024
@stmontgomery
Copy link
Contributor Author

@swift-ci please test

@stmontgomery
Copy link
Contributor Author

@swift-ci please test

// where traits with conditional API availability are not guarded by
// `@available` attributes on their associated `@Test` function
// (rdar://127811571). That is not directly relevant here but is worth noting
// if this trait is ever applied to `@Test` functions in this file.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

No functional change in this file, just noting this related bug

@stmontgomery
Copy link
Contributor Author

@swift-ci please test Windows

@stmontgomery stmontgomery merged commit 35b34ed into swiftlang:main May 9, 2024
3 checks passed
@stmontgomery stmontgomery deleted the guard-fixture-timeLimit-trait branch May 9, 2024 15:40
@grynspan grynspan added the discovery 🔎 test content discovery label Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working discovery 🔎 test content discovery
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants