Skip to content

Commit c996b0a

Browse files
authored
AdvancedConsoleOutputRecorderTests is missing an import of Foundation (#1346)
Import `Foundation` in `AdvancedConsoleOutputRecorderTests`. This is required due to `MemberImportVisibility` although in practice this problem only shows up when building for non-macOS Apple platforms, such as iOS, due to the differing deployment target versions we use for non-macOS platforms. ### Checklist: - [x] Code and documentation should follow the style of the [Style Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md). - [x] If public symbols are renamed or modified, DocC references should be updated.
1 parent b4d1d05 commit c996b0a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Tests/TestingTests/AdvancedConsoleOutputRecorderTests.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
// See https://swift.org/CONTRIBUTORS.txt for Swift project authors
99
//
1010

11+
#if canImport(Foundation)
1112
@testable @_spi(Experimental) @_spi(ForToolsIntegrationOnly) import Testing
13+
import Foundation
1214

1315
@Suite("Advanced Console Output Recorder Tests")
1416
struct AdvancedConsoleOutputRecorderTests {
@@ -237,3 +239,4 @@ struct SimpleTestSuite {
237239
#expect(Bool(true))
238240
}
239241
}
242+
#endif

0 commit comments

Comments
 (0)