Commit 255acf8
authored
Run a subtask of the runner task group for each individual test even when running serially. (#578)
Right now, when tests are run serially, they're simply run in a
for-loop. This has the side effect of potentially building up a lot of
autorelease pool cruft (on platforms with such a concept) if those tests
never introduce any suspension points.
As well, this produces a subtle difference in task cancellation
propagation because calling `UnsafeCurrentTask.cancel()` in a serialized
test will cancel the entire task group, not just the test's own subtask.
Resolves rdar://130034310.
### Checklist:
- [x] Code and documentation should follow the style of the [Style
Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md).
- [x] If public symbols are renamed or modified, DocC references should
be updated.1 parent 5ccb3b7 commit 255acf8
1 file changed
+10
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
| 124 | + | |
136 | 125 | | |
137 | | - | |
138 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
139 | 135 | | |
140 | 136 | | |
141 | 137 | | |
| |||
0 commit comments