Skip to content

Commit 38741f3

Browse files
committed
[test] Add Android (and FreeBSD) to OS checks
Add Android to the OS checks used to determine whether to import Glibc. These tests would pass on Android were it not for the fact that Android is not included in the Glibc check. Also add FreeBSD where missing.
1 parent b8bbed8 commit 38741f3

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

test/1_stdlib/PrintFloat.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// REQUIRES: executable_test
77

88
import StdlibUnittest
9-
#if os(Linux) || os(FreeBSD)
9+
#if os(Linux) || os(FreeBSD) || os(Android)
1010
import Glibc
1111
#else
1212
import Darwin

test/Prototypes/FloatingPoint.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ extension UInt32 : FloatingPointRepresentation {
2727
// Ewwww? <rdar://problem/20060017>
2828
#if os(OSX) || os(iOS) || os(watchOS) || os(tvOS)
2929
import Darwin
30-
#elseif os(Linux)
30+
#elseif os(Linux) || os(FreeBSD) || os(Android)
3131
import Glibc
3232
#endif
3333

validation-test/StdlibUnittest/Stdin.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import StdlibUnittest
66

77
#if os(OSX) || os(iOS) || os(tvOS) || os(watchOS)
88
import Darwin
9-
#elseif os(Linux)
9+
#elseif os(Linux) || os(FreeBSD) || os(Android)
1010
import Glibc
1111
#endif
1212

validation-test/stdlib/String.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ StringTests.test(
919919
#endif
920920
}
921921

922-
#if os(Linux)
922+
#if os(Linux) || os(FreeBSD) || os(Android)
923923
import Glibc
924924
#endif
925925

0 commit comments

Comments
 (0)