Skip to content

Fix use of XCTest minimum deployment target #6504

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 1, 2023

Conversation

neonichu
Copy link
Contributor

@neonichu neonichu commented May 1, 2023

If the computed XCTest minimum deployment target is lower than the oldest supported version of a platform, we should not use it as the basis for deployment targets of test targets.

This issue was actually also present in the tests which were written to expect the incorrect behavior of always preferring the XCTest minimum deployment target.

rdar://108462045

If the computed XCTest minimum deployment target is lower than the oldest supported version of a platform, we should not use it as the basis for deployment targets of test targets.

This issue was actually also present in the tests which were written to expect the incorrect behavior of always preferring the XCTest minimum deployment target.

rdar://108462045
@neonichu neonichu requested a review from abertelrud as a code owner May 1, 2023 16:51
@neonichu neonichu self-assigned this May 1, 2023
@neonichu
Copy link
Contributor Author

neonichu commented May 1, 2023

@swift-ci please smoke test

Copy link
Contributor

@MaxDesiatov MaxDesiatov left a comment

Choose a reason for hiding this comment

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

Do we have a test for this one?

@neonichu
Copy link
Contributor Author

neonichu commented May 1, 2023

Do we have a test for this one?

Yes, I updated the existing tests to catch this type of issue.

@neonichu neonichu merged commit 8af71a9 into main May 1, 2023
@neonichu neonichu deleted the fix-xctest-minimum-deployment-target branch May 1, 2023 18:43
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.

4 participants