Skip to content

Commit deb34d1

Browse files
committed
To build for Android
1 parent 5746785 commit deb34d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/XCTest/Private/PrintObserver.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ internal class PrintObserver: XCTestObservation {
5959

6060
fileprivate func printAndFlush(_ message: String) {
6161
print(message)
62+
#if !os(Android)
6263
fflush(stdout)
64+
#endif
6365
}
6466

6567
private func formatTimeInterval(_ timeInterval: TimeInterval) -> String {

0 commit comments

Comments
 (0)