Skip to content

Commit 359c2c4

Browse files
authored
Disable testResolveSymlinksViaGetAttrList() on non-Darwin (#732)
1 parent 75a3f5a commit 359c2c4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tests/FoundationEssentialsTests/FileManager/FileManagerTests.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,9 @@ final class FileManagerTests : XCTestCase {
692692
}
693693

694694
func testResolveSymlinksViaGetAttrList() throws {
695+
#if !canImport(Darwin)
696+
throw XCTSkip("This test is not applicable on this platform")
697+
#else
695698
try FileManagerPlayground {
696699
"destination"
697700
}.test {
@@ -700,6 +703,7 @@ final class FileManagerTests : XCTestCase {
700703
let resolved = absolutePath._resolvingSymlinksInPath() // Call internal function to avoid path standardization
701704
XCTAssertEqual(resolved, $0.currentDirectoryPath.appendingPathComponent("destination").withFileSystemRepresentation { String(cString: $0!) })
702705
}
706+
#endif
703707
}
704708

705709
#if os(macOS) && FOUNDATION_FRAMEWORK

0 commit comments

Comments
 (0)