File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ open class FileHandle : NSObject {
57
57
precondition ( _handle != INVALID_HANDLE_VALUE, " Invalid file handle " )
58
58
}
59
59
60
- private var _isPlatformHandleValid : Bool {
60
+ internal var _isPlatformHandleValid : Bool {
61
61
return _handle != INVALID_HANDLE_VALUE
62
62
}
63
63
#else
@@ -71,7 +71,7 @@ open class FileHandle : NSObject {
71
71
precondition ( _fd >= 0 , " Bad file descriptor " )
72
72
}
73
73
74
- private var _isPlatformHandleValid : Bool {
74
+ internal var _isPlatformHandleValid : Bool {
75
75
return fileDescriptor >= 0
76
76
}
77
77
#endif
Original file line number Diff line number Diff line change 7
7
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8
8
//
9
9
10
+ #if NS_FOUNDATION_ALLOWS_TESTABLE_IMPORT
11
+ #if canImport(SwiftFoundation) && !DEPLOYMENT_RUNTIME_OBJC
12
+ @testable import SwiftFoundation
13
+ #else
14
+ @testable import Foundation
15
+ #endif
16
+ #endif
17
+
10
18
#if !DARWIN_COMPATIBILITY_TESTS // Disable until Foundation has the new FileHandle API
11
19
class TestPipe : XCTestCase {
12
20
You can’t perform that action at this time.
0 commit comments