Skip to content

Commit 8b95018

Browse files
committed
Build fix: TestBundle
Ensure TestBundle imports using `@testable import`.
1 parent 049b8d4 commit 8b95018

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

TestFoundation/TestBundle.swift

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

1010
import CoreFoundation
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
internal func testBundle() -> Bundle {
1321
#if DARWIN_COMPATIBILITY_TESTS
1422
for bundle in Bundle.allBundles {

0 commit comments

Comments
 (0)