Skip to content

Commit f318356

Browse files
authored
Merge pull request #2266 from compnerd/doa-ftp
TestFoundation: excise FTPServer
2 parents 17d047b + 00809bd commit f318356

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

TestFoundation/FTPServer.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
// See http://swift.org/LICENSE.txt for license information
77
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
88
//
9+
10+
#if !os(Windows)
911
//This is a very rudimentary FTP server written plainly for testing URLSession FTP Implementation.
1012
import Dispatch
1113

@@ -283,3 +285,4 @@ class LoopbackFTPServerTest: XCTestCase {
283285
serverReady.wait(timeout: timeout)
284286
}
285287
}
288+
#endif

TestFoundation/TestURLSessionFTP.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
88
//
99

10+
#if !os(Windows)
1011
#if DEPLOYMENT_RUNTIME_OBJC || os(Linux)
1112
import Foundation
1213
import XCTest
@@ -121,3 +122,4 @@ extension FTPDataTask : URLSessionTaskDelegate {
121122
self.error = true
122123
}
123124
}
125+
#endif

TestFoundation/main.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,12 @@ var allTestCases = [
113113
testCase(TestMeasurement.allTests),
114114
testCase(TestNSLock.allTests),
115115
testCase(TestNSSortDescriptor.allTests),
116-
testCase(TestURLSessionFTP.allTests),
117116
]
118117

118+
#if !os(Windows)
119+
allTestCases.append(contentsOf: [
120+
testCase(TestURLSessionFTP.allTests),
121+
])
122+
#endif
123+
119124
XCTMain(allTestCases)

0 commit comments

Comments
 (0)