Skip to content

Commit b8c3351

Browse files
committed
TestFileHandle: Fix NS_FOUNDATION_ALLOWS_TESTABLE_IMPORT
1 parent 263ce3c commit b8c3351

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

TestFoundation/TestFileHandle.swift

+8
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)