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 11// RUN: %target-run-simple-swift( -Xfrontend -disable-availability-checking -parse-as-library) | %FileCheck %s
22// TODO: move to target-run-simple-leaks-swift once CI is using at least Xcode 14.3
33
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
66
77// REQUIRES: executable_test
88// REQUIRES: concurrency
@@ -19,15 +19,15 @@ final class Something {
1919 }
2020
2121 deinit {
22- print ( " deinit, Something, int: \( int) " )
22+ print ( " deinit, Something, int: \( self . int) " )
2323 }
2424}
2525
2626func test_taskGroup_next( ) async {
2727 let tasks = 5
2828 _ = await withTaskGroup ( of: Something . self, returning: Int . self) { group in
2929 for n in 0 ..< tasks {
30- group. spawn {
30+ group. addTask {
3131 Something ( int: n)
3232 }
3333 }
You can’t perform that action at this time.
0 commit comments