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 d861864 commit d027854Copy full SHA for d027854
Tests/FoundationEssentialsTests/FileManager/FileManagerTests.swift
@@ -1071,6 +1071,7 @@ private struct FileManagerTests {
1071
if error.code == .featureUnsupported { return }
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 }
1076
#else
1077
guard posix.code == .EOPNOTSUPP else { throw error }
0 commit comments