Skip to content

[test] Move availability tests to later fake OS versions #76023

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

benlangmuir
Copy link
Contributor

10.50 was once greater than any real macOS version, but now it compares less than real released versions, which makes these tests depend on the deployment target unnecessarily. Update these tests to use even larger numbers to hopefully keep them independent a little longer.


Note for reviewers: this was a mostly mechanical change. I found the set of tests to change by bumping the deployment target to 11, regex-replaced the versions, then manually fixed a couple of tests that checked SIL output where the version is split into components so was missed by regex replace.

10.50 was once greater than any real macOS version, but now it compares
less than real released versions, which makes these tests depend on the
deployment target unnecessarily. Update these tests to use even larger
numbers to hopefully keep them independent a little longer.
@benlangmuir
Copy link
Contributor Author

@swift-ci please test

Copy link
Member

@DougGregor DougGregor left a comment

Choose a reason for hiding this comment

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

This all looks reasonable to me, thank you!

@benlangmuir benlangmuir merged commit 44d3f3c into swiftlang:main Aug 22, 2024
5 checks passed
@benlangmuir benlangmuir deleted the add-more-years-of-independence branch August 22, 2024 15:46
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