Skip to content

Commit e0438d2

Browse files
committed
Disable taskgroup test on freestanding; they're not supported
1 parent ff696c4 commit e0438d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/Concurrency/Runtime/async_taskgroup_dontLeakTasks.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
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

2626
func 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
}

0 commit comments

Comments
 (0)