Skip to content

Commit d027854

Browse files
authored
Add comment about error code
1 parent d861864 commit d027854

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Tests/FoundationEssentialsTests/FileManager/FileManagerTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,6 +1071,7 @@ private struct FileManagerTests {
10711071
if error.code == .featureUnsupported { return }
10721072
guard let posix = error.underlying as? POSIXError else { throw error }
10731073
#if canImport(Darwin)
1074+
// .ENOTSUP is Darwin-specific.
10741075
guard posix.code == .ENOTSUP || posix.code == .EOPNOTSUPP else { throw error }
10751076
#else
10761077
guard posix.code == .EOPNOTSUPP else { throw error }

0 commit comments

Comments
 (0)