Skip to content

Commit 1049ed9

Browse files
committed
Perm for the probe
1 parent 15e1703 commit 1049ed9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/FoundationEssentialsTests/FileManager/FileManagerTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ private struct FileManagerTests {
10741074
} catch let error as CocoaError {
10751075
if error.code == .featureUnsupported { return }
10761076
guard let posix = error.underlying as? POSIXError else { throw error }
1077-
guard posix.code.rawValue == EOPNOTSUPP || posix.code.rawValue == ENOTSUP else { throw error }
1077+
guard posix.code.rawValue == EOPNOTSUPP || posix.code.rawValue == ENOTSUP || posix.code == .EPERM else { throw error }
10781078
return
10791079
}
10801080

0 commit comments

Comments
 (0)