File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 6
6
// See http://swift.org/LICENSE.txt for license information
7
7
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8
8
//
9
+
10
+ #if !os(Windows)
9
11
//This is a very rudimentary FTP server written plainly for testing URLSession FTP Implementation.
10
12
import Dispatch
11
13
@@ -283,3 +285,4 @@ class LoopbackFTPServerTest: XCTestCase {
283
285
serverReady. wait ( timeout: timeout)
284
286
}
285
287
}
288
+ #endif
Original file line number Diff line number Diff line change 7
7
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8
8
//
9
9
10
+ #if !os(Windows)
10
11
#if DEPLOYMENT_RUNTIME_OBJC || os(Linux)
11
12
import Foundation
12
13
import XCTest
@@ -121,3 +122,4 @@ extension FTPDataTask : URLSessionTaskDelegate {
121
122
self . error = true
122
123
}
123
124
}
125
+ #endif
Original file line number Diff line number Diff line change @@ -113,7 +113,12 @@ var allTestCases = [
113
113
testCase ( TestMeasurement . allTests) ,
114
114
testCase ( TestNSLock . allTests) ,
115
115
testCase ( TestNSSortDescriptor . allTests) ,
116
- testCase ( TestURLSessionFTP . allTests) ,
117
116
]
118
117
118
+ #if !os(Windows)
119
+ allTestCases. append ( contentsOf: [
120
+ testCase ( TestURLSessionFTP . allTests) ,
121
+ ] )
122
+ #endif
123
+
119
124
XCTMain ( allTestCases)
You can’t perform that action at this time.
0 commit comments