File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
// RUN: %target-run-simple-swift( -Xfrontend -disable-availability-checking -parse-as-library) | %FileCheck %s
2
2
// TODO: move to target-run-simple-leaks-swift once CI is using at least Xcode 14.3
3
3
4
- // This test uses `leaks` which is only available on apple platforms; limit it to macOS:
5
- // REQUIRES: OS=macosx
4
+ // Task group addTask is not supported in freestanding mode
5
+ // UNSUPPORTED: freestanding
6
6
7
7
// REQUIRES: executable_test
8
8
// REQUIRES: concurrency
@@ -19,15 +19,15 @@ final class Something {
19
19
}
20
20
21
21
deinit {
22
- print ( " deinit, Something, int: \( int) " )
22
+ print ( " deinit, Something, int: \( self . int) " )
23
23
}
24
24
}
25
25
26
26
func test_taskGroup_next( ) async {
27
27
let tasks = 5
28
28
_ = await withTaskGroup ( of: Something . self, returning: Int . self) { group in
29
29
for n in 0 ..< tasks {
30
- group. spawn {
30
+ group. addTask {
31
31
Something ( int: n)
32
32
}
33
33
}
You can’t perform that action at this time.
0 commit comments