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 15e1703 commit 1049ed9Copy full SHA for 1049ed9
Tests/FoundationEssentialsTests/FileManager/FileManagerTests.swift
@@ -1074,7 +1074,7 @@ private struct FileManagerTests {
1074
} catch let error as CocoaError {
1075
if error.code == .featureUnsupported { return }
1076
guard let posix = error.underlying as? POSIXError else { throw error }
1077
- guard posix.code.rawValue == EOPNOTSUPP || posix.code.rawValue == ENOTSUP else { throw error }
+ guard posix.code.rawValue == EOPNOTSUPP || posix.code.rawValue == ENOTSUP || posix.code == .EPERM else { throw error }
1078
return
1079
}
1080
0 commit comments