Skip to content

Commit ae4956c

Browse files
authored
Merge pull request #2250 from spevans/pr_fix_testable
2 parents 263ce3c + b8c3351 commit ae4956c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

TestFoundation/TestFileHandle.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@
99

1010
#if !DARWIN_COMPATIBILITY_TESTS // Disable until Foundation has the new FileHandle API
1111

12+
#if NS_FOUNDATION_ALLOWS_TESTABLE_IMPORT
13+
#if canImport(SwiftFoundation) && !DEPLOYMENT_RUNTIME_OBJC
14+
@testable import SwiftFoundation
15+
#else
16+
@testable import Foundation
17+
#endif
18+
#endif
19+
1220
import Dispatch
1321

1422
class TestFileHandle : XCTestCase {

0 commit comments

Comments
 (0)