Skip to content

Conversation

@seabaylea
Copy link
Contributor

SR-794 reports an issue with NSBundle.pathForResource() whereby it returns nil instead of the expected resource.

It looks like this is cause because the supplied subpath value isn't passed down to the underlying URLForResource() call.

I've fixed that and added an implementation of the test case to TestNSBundle. I've done that under the existing test_URLsForResourcesWithExtension() test as a separate call and check as its a similar test and reuses the same bundle setup/teardown. I can spin it off as a separate test though if it makes sense.

@parkera
Copy link
Contributor

parkera commented Mar 4, 2016

Looks good. Will run through tests then we can merge.

@parkera
Copy link
Contributor

parkera commented Mar 4, 2016

@swift-ci please test

phausler added a commit that referenced this pull request Mar 7, 2016
SR-794 pass supplied subpath through to URLForResource rather than nil
@phausler phausler merged commit a1d15a1 into swiftlang:master Mar 7, 2016
@seabaylea seabaylea deleted the nsbundle branch March 7, 2016 19:51
kateinoigakukun pushed a commit to kateinoigakukun/swift-corelibs-foundation that referenced this pull request Oct 11, 2023
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.

3 participants