We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e97e30 commit a93421dCopy full SHA for a93421d
Tests/FoundationEssentialsTests/FileManager/FileManagerTests.swift
@@ -1072,9 +1072,10 @@ private struct FileManagerTests {
1072
guard let posix = error.underlying as? POSIXError else { throw error }
1073
#if canImport(Darwin)
1074
// .ENOTSUP is Darwin-specific.
1075
- guard posix.code == .ENOTSUP || posix.code == .EOPNOTSUPP else { throw error }
+ guard posix.code == .ENOTSUP || posix.code == .EOPNOTSUPP || posix.code == .EPERM else { throw error }
1076
#else
1077
- guard posix.code == .EOPNOTSUPP else { throw error }
+ // .EPERM can occur on Linux if xattrs on symlinks aren't permitted.
1078
+ guard posix.code == .EOPNOTSUPP || posix.code == .EPERM else { throw error }
1079
#endif
1080
return
1081
}
0 commit comments