Skip to content

Comments

Update Tests For .lastComponentWithoutExetnison#44

Merged
kylef merged 1 commit intokylef:masterfrom
dduan:fix-last-component
Dec 23, 2017
Merged

Update Tests For .lastComponentWithoutExetnison#44
kylef merged 1 commit intokylef:masterfrom
dduan:fix-last-component

Conversation

@dduan
Copy link
Contributor

@dduan dduan commented Dec 22, 2017

Background

A test for this API has been failing, but only on macOS. This is
due to a implementation difference between the closed-source Foundation
and its open-source counterpart. Recently, a patch has been made to
the latter to fix this issue. The patch is included in the upcoming
Swift 4.1 release.

Changes

Add a condition to the test so it passes on both platforms for now. The
expectation is that come Swift 4.1, this test will start failing on
Linux and the condition will be removed then.

_Background_

A test for this API has been [failing, but only on macOS][0]. This is
due to a implementation difference between the closed-source Foundation
and its open-source counterpart. Recently, a [patch][1] has been made to
the latter to fix this issue. The patch is [included][2] in the upcoming
Swift 4.1 release.

_Changes_

Add a condition to the test so it passes on both platforms for now. The
expectation is that come Swift 4.1, this test will start failing on
Linux and the condition will be removed then.

[0]: https://travis-ci.org/kylef/PathKit/builds/289637066
[1]: swiftlang/swift-corelibs-foundation#1376
[2]: https://github.com/apple/swift-corelibs-foundation/commits/swift-4.1-branch
@kylef kylef merged commit 02f8324 into kylef:master Dec 23, 2017
@dduan dduan deleted the fix-last-component branch December 23, 2017 23:36
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