Skip to content

Commit 3f4fbe5

Browse files
committed
Leave imports in xdgTestHelper.swift
1 parent c2df62e commit 3f4fbe5

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

TestFoundation/HTTPServer.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414

1515
import Dispatch
1616

17-
#if os(macOS) || os(iOS)
17+
#if canImport(Darwin)
1818
import Darwin
19-
#elseif os(Linux)
19+
#elseif canImport(Glibc)
2020
import Glibc
2121
#endif
2222

TestFoundation/XDGTestHelper.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
88
//
99

10+
#if os(Linux) || os(Android)
11+
import Foundation
12+
#else
13+
import SwiftFoundation
14+
#endif
15+
1016
class XDGCheck {
1117

1218
static func run() -> Never {

TestFoundation/main.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99

1010
// Most imports now centraized in TestImports.swift
1111

12-
#if os(macOS) || os(iOS)
12+
#if canImport(Darwin)
1313
import Darwin
14-
#elseif os(Linux) || os(Android)
14+
#elseif canImport(Glibc)
1515
import Glibc
1616
#endif
1717

TestFoundation/xdgTestHelper/main.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
88
//
99

10+
#if os(Linux) || os(Android)
11+
import Foundation
12+
#else
13+
import SwiftFoundation
14+
#endif
15+
1016
enum HelperCheckStatus : Int32 {
1117
case ok = 0
1218
case fail = 1

0 commit comments

Comments
 (0)