Skip to content

Commit 0baf557

Browse files
authored
Merge pull request #3042 from compnerd/flush
2 parents c256173 + cc86e5f commit 0baf557

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Tests/Foundation/main.swift

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
import Darwin
1414
#elseif canImport(Glibc)
1515
import Glibc
16+
#elseif canImport(CRT)
17+
import CRT
1618
#endif
1719

1820
#if !os(Windows)
@@ -131,4 +133,8 @@ allTestCases.append(contentsOf: [
131133
])
132134
#endif
133135

136+
atexit({
137+
fflush(stdout)
138+
fflush(stderr)
139+
})
134140
XCTMain(allTestCases)

0 commit comments

Comments
 (0)