File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
stdlib/private/StdlibUnittest Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ import Darwin
24
24
import Glibc
25
25
#elseif canImport(Musl)
26
26
import Musl
27
+ #elseif os(WASI)
28
+ import WASILibc
27
29
#elseif os(Windows)
28
30
import CRT
29
31
import WinSDK
@@ -37,6 +39,12 @@ import ObjectiveC
37
39
import _Concurrency
38
40
#endif
39
41
42
+ #if os(WASI)
43
+ let platformSupportsChildProcesses = false
44
+ #else
45
+ let platformSupportsChildProcesses = true
46
+ #endif
47
+
40
48
extension String {
41
49
/// Returns the lines in `self`.
42
50
public var _lines : [ String ] {
@@ -1726,7 +1734,7 @@ public func runAllTests() {
1726
1734
if _isChildProcess {
1727
1735
_childProcess ( )
1728
1736
} else {
1729
- var runTestsInProcess : Bool = false
1737
+ var runTestsInProcess : Bool = !platformSupportsChildProcesses
1730
1738
var filter : String ?
1731
1739
var args = [ String] ( )
1732
1740
var i = 0
@@ -1796,7 +1804,7 @@ public func runAllTestsAsync() async {
1796
1804
if _isChildProcess {
1797
1805
await _childProcessAsync ( )
1798
1806
} else {
1799
- var runTestsInProcess : Bool = false
1807
+ var runTestsInProcess : Bool = !platformSupportsChildProcesses
1800
1808
var filter : String ?
1801
1809
var args = [ String] ( )
1802
1810
var i = 0
You can’t perform that action at this time.
0 commit comments