Skip to content

Commit bea899d

Browse files
committed
android test fixes
1 parent 8b6767b commit bea899d

34 files changed

+77
-2
lines changed

test/AutoDiff/SILOptimizer/vjp_and_pullback_inlining.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
import _Differentiation
1010
#if canImport(Glibc)
1111
import Glibc
12+
#elseif canImport(Android)
13+
import Android
1214
#else
1315
import Foundation
1416
#endif
@@ -112,4 +114,4 @@ func caller_of_more_complex_pb_with_control_flow() -> Float {
112114
}
113115

114116
// CHECK: decision {{{.*}}, b=70, {{.*}}} more_complex_pb_with_control_flowTJpSpSr
115-
// CHECK-NEXT: "more_complex_pb_with_control_flowTJpSpSr" inlined into "caller_of_more_complex_pb_with_control_flow"
117+
// CHECK-NEXT: "more_complex_pb_with_control_flowTJpSpSr" inlined into "caller_of_more_complex_pb_with_control_flow"

test/AutoDiff/compiler_crashers_fixed/issue-56600-symbol-in-ir-file-not-tbd-file.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import _Differentiation
1212
import Darwin
1313
#elseif canImport(Glibc)
1414
import Glibc
15+
#elseif canImport(Android)
16+
import Android
1517
#elseif os(Windows)
1618
import CRT
1719
#else

test/AutoDiff/stdlib/tgmath_derivatives.swift.gyb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
import Darwin.C.tgmath
66
#elseif canImport(Glibc)
77
import Glibc
8+
#elseif canImport(Android)
9+
import Android
810
#elseif os(Windows)
911
import CRT
1012
#else

test/AutoDiff/validation-test/custom_derivatives.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import StdlibUnittest
66
import Darwin.C
77
#elseif canImport(Glibc)
88
import Glibc
9+
#elseif canImport(Android)
10+
import Android
911
#elseif os(Windows)
1012
import CRT
1113
#else

test/AutoDiff/validation-test/separate_tangent_type.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import StdlibUnittest
66
import Darwin.C
77
#elseif canImport(Glibc)
88
import Glibc
9+
#elseif canImport(Android)
10+
import Android
911
#elseif os(Windows)
1012
import CRT
1113
#else

test/ClangImporter/clang_builtins.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
import Darwin
55
#elseif canImport(Glibc)
66
import Glibc
7+
#elseif canImport(Android)
8+
import Android
79
#elseif os(WASI)
810
import WASILibc
911
#elseif os(Windows)

test/Concurrency/Runtime/async.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ import StdlibUnittest
1616
import Darwin
1717
#elseif canImport(Glibc)
1818
import Glibc
19+
#elseif canImport(Android)
20+
import Android
1921
#endif
2022

2123
var asyncTests = TestSuite("Async")

test/Concurrency/Runtime/async_task_locals_copy_to_sync.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ import Dispatch
1818
import Darwin
1919
#elseif canImport(Glibc)
2020
import Glibc
21+
#elseif canImport(Android)
22+
import Android
2123
#endif
2224

2325
enum TL {

test/Concurrency/Runtime/async_task_withUnsafeCurrentTask.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
import Glibc
1111
#elseif os(Windows)
1212
import MSVCRT
13+
#elseif canImport(Android)
14+
import Android
1315
#else
1416
import Darwin
1517
#endif
@@ -36,4 +38,4 @@ func test_withUnsafeCurrentTask() async {
3638
static func main() async {
3739
await test_withUnsafeCurrentTask()
3840
}
39-
}
41+
}

test/Concurrency/Runtime/cancellation_handler.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
import Darwin
1313
#elseif canImport(Glibc)
1414
import Glibc
15+
#elseif canImport(Android)
16+
import Android
1517
#elseif canImport(WASILibc)
1618
import WASILibc
1719
#elseif os(Windows)

0 commit comments

Comments
 (0)