Skip to content

Commit 3ca8b13

Browse files
authored
Merge pull request #618 from buttaface/droid
Add tweaks for Android
2 parents c34cea5 + 54ff516 commit 3ca8b13

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Sources/TestSupport/TestSupport.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import XCTest
1515
// *without* `-disable-availability-checking` to ensure the #available check is
1616
// not compiled into a no-op.
1717

18-
#if os(Linux)
18+
#if os(Linux) || os(Android)
1919
public func XCTExpectFailure(
2020
_ message: String? = nil, body: () throws -> Void
2121
) rethrows {}

Sources/VariadicsGenerator/VariadicsGenerator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import ArgumentParser
1515
#if os(macOS)
1616
import Darwin
17-
#elseif os(Linux)
17+
#elseif canImport(Glibc)
1818
import Glibc
1919
#elseif os(Windows)
2020
import CRT

Tests/RegexTests/UTS18Tests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fileprivate func expectFirstMatch<Output: Equatable>(
6262
XCTAssertEqual(input.firstMatch(of: r)?.output, output, file: file, line: line)
6363
}
6464

65-
#if os(Linux)
65+
#if os(Linux) || os(Android)
6666
func XCTExpectFailure(_ message: String? = nil, body: () throws -> Void) rethrows {}
6767
#endif
6868

0 commit comments

Comments
 (0)