Skip to content

Commit fb4ee55

Browse files
authored
Merge pull request swiftlang#38657 from DougGregor/enable-yield-test
Re-enable test that should not be flaky now.
2 parents 6d07945 + 3f0bdff commit fb4ee55

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

test/Concurrency/Runtime/async_task_yield.swift

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
// RUN: %target-run-simple-swift(-Xfrontend -disable-availability-checking -parse-as-library) | %FileCheck %s
1+
// RUN: %target-run-simple-swift(-Xfrontend -disable-availability-checking -parse-as-library)
22

33
// REQUIRES: executable_test
44
// REQUIRES: concurrency
5-
// REQUIRES: rdar78638858
65

76
// https://bugs.swift.org/browse/SR-14333
87
// UNSUPPORTED: OS=windows-msvc
@@ -35,10 +34,10 @@ func yielding() async {
3534
let one = One()
3635
let two = Two()
3736
await withTaskGroup(of: Int.self) { group in
38-
await group.spawn {
37+
group.addTask {
3938
await one.go(times: 100)
4039
}
41-
await group.spawn {
40+
group.addTask {
4241
await two.go(times: 100)
4342
}
4443
}
@@ -48,7 +47,5 @@ func yielding() async {
4847
@main struct Main {
4948
static func main() async {
5049
await yielding()
51-
// TODO: No idea for a good test for this... Open to ideas?
52-
// CHECK: Two @ 100
5350
}
5451
}

0 commit comments

Comments
 (0)