Skip to content

tests: Disable some tests which fail due to problems in Foundation #67450

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
Jul 24, 2023

Conversation

eeckstein
Copy link
Contributor

Those tests should be part of the Foundation overlay, which is no longer part of the Swift project.

rdar://112643333

@eeckstein eeckstein requested a review from lorentey July 21, 2023 06:43
@eeckstein
Copy link
Contributor Author

@swift-ci smoke test

Those tests should be part of the Foundation overlay, which is no longer part of the Swift project.

rdar://112643333
@eeckstein eeckstein force-pushed the disable-nsstring-tests branch from 4131554 to 7f54c63 Compare July 24, 2023 06:34
@eeckstein
Copy link
Contributor Author

@swift-ci smoke test

@eeckstein eeckstein merged commit 2d42671 into swiftlang:main Jul 24, 2023
@eeckstein eeckstein deleted the disable-nsstring-tests branch July 24, 2023 11:00
natecook1000 pushed a commit to natecook1000/swift that referenced this pull request Aug 1, 2023
tests: Disable some tests which fail due to problems in Foundation
natecook1000 added a commit that referenced this pull request Aug 1, 2023
tests: Disable some tests which fail due to problems in Foundation

Co-authored-by: eeckstein <[email protected]>
itingliu added a commit to itingliu/swift-foundation that referenced this pull request Oct 12, 2023
…epo)

Batch add `String` and `Substring` tests for from stdlib to FCF. These were removed from stldlib in https://github.com/apple/swift/pull/67252/files and swiftlang/swift#67450. These tests were added to test Foundation's `StringProtocol` extension that called into `NSString` API.

Now that some of the tests were implemented with Swift natively, they should be made available for FoundationPreview, but we'll track that in a separate PR.
itingliu added a commit to swiftlang/swift-foundation that referenced this pull request Oct 19, 2023
* rdar://106770688 (Port test/stdlib/NSStringAPI.swift from the Swift repo)

Batch add `String` and `Substring` tests for from stdlib to FCF. These were removed from stldlib in https://github.com/apple/swift/pull/67252/files and swiftlang/swift#67450. These tests were added to test Foundation's `StringProtocol` extension that called into `NSString` API.

Now that some of the tests were implemented with Swift natively, they should be made available for FoundationPreview, but we'll track that in a separate PR.

* Address review feedback: clean up availability annotations
* Remove the need of swizzling current locale. Instead, add internal functions those localized functions can call into and pass in a locale explicitly for testing.
* Remove the use of current locale in tests
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.

1 participant