-
Notifications
You must be signed in to change notification settings - Fork 1.2k
TestFoundation: use bridging for CFStringGetLength #2087
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
Conversation
@swift-ci please test |
a583b38
to
3d61bc1
Compare
@swift-ci please test |
Rather than use CoreFoundation interfaces, use bridging more aggressively to call the CoreFoundation methods. This reduces the dependency on CoreFoundation for the test suite.
3d61bc1
to
c9fe38d
Compare
@swift-ci please test |
1 similar comment
@swift-ci please test |
@swift-ci please test macOS platform |
I think this change might have broken Linux builds:
All of them finish with Looking at the test and the changes, it seems that the changes basically have remove the functionality that the test was testing for (doing a substring of a CFString, when after the changes, it is doing the substring of a NSString). I think the problem comes from doing |
A little more information. The problem only happen in The disassembly for
The disassemble for
Which is the function that fails:
Reverting this change until that problem can be investigated further might not be a bad idea. |
@millenomi can you take a look? |
I think the problem is in the library, not the tests. The |
Rather than use CoreFoundation interfaces, use bridging more
aggressively to call the CoreFoundation methods. This reduces the
dependency on CoreFoundation for the test suite.