Skip to content

Commit 6c75ae8

Browse files
authored
Merge pull request #728 from alblue/macostestfix
2 parents 30b17ed + 57315da commit 6c75ae8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

TestFoundation/TestNSURL.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -389,14 +389,14 @@ class TestNSURL : XCTestCase {
389389
let result = url.resolvingSymlinksInPath().absoluteString
390390
XCTAssertEqual(result, "file:///private/")
391391
}
392-
#endif
393-
392+
#else
394393
do {
395394
let url = URL(fileURLWithPath: "/tmp/ABC/test_URLByResolvingSymlinksInPath")
396395
let result = url.resolvingSymlinksInPath().absoluteString
397396
XCTAssertEqual(result, "file:///tmp/ABC/test_URLByResolvingSymlinksInPath", "URLByResolvingSymlinksInPath appends trailing slash for existing directories only")
398397
}
399-
398+
#endif
399+
400400
do {
401401
let url = URL(fileURLWithPath: "/tmp/ABC/..")
402402
let result = url.resolvingSymlinksInPath().absoluteString

0 commit comments

Comments
 (0)