-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathswift-system-tests.patch
30 lines (28 loc) · 1.07 KB
/
swift-system-tests.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
diff --git a/swift-system/Tests/SystemTests/FileOperationsTest.swift b/swift-system/Tests/SystemTests/FileOperationsTest.swift
index ed05dcf..db9aa0e 100644
--- a/swift-system/Tests/SystemTests/FileOperationsTest.swift
+++ b/swift-system/Tests/SystemTests/FileOperationsTest.swift
@@ -15,6 +15,10 @@ import XCTest
@testable import System
#endif
+#if canImport(Android)
+import Android
+#endif
+
@available(/*System 0.0.1: macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0*/iOS 8, *)
final class FileOperationsTest: XCTestCase {
func testSyscalls() {
diff --git a/swift-system/Tests/SystemTests/FileTypesTest.swift b/swift-system/Tests/SystemTests/FileTypesTest.swift
index 620cfd7..496fc56 100644
--- a/swift-system/Tests/SystemTests/FileTypesTest.swift
+++ b/swift-system/Tests/SystemTests/FileTypesTest.swift
@@ -15,6 +15,10 @@ import SystemPackage
import System
#endif
+#if canImport(Android)
+import Android
+#endif
+
@available(/*System 0.0.1: macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0*/iOS 8, *)
final class FileDescriptorTest: XCTestCase {
func testStandardDescriptors() {