Skip to content

[6.3.2] Fix off-by-one error trimming barrier sequences from exit test output streams.#1695

Merged
grynspan merged 1 commit into
release/6.3from
jgrynspan/1693-exit-test-off-by-one-barrier-6.3.2
Apr 28, 2026
Merged

[6.3.2] Fix off-by-one error trimming barrier sequences from exit test output streams.#1695
grynspan merged 1 commit into
release/6.3from
jgrynspan/1693-exit-test-off-by-one-barrier-6.3.2

Conversation

@grynspan

Copy link
Copy Markdown
Contributor

… streams. (#1694)

If the _only_ thing in the `stdout` or `stderr` stream of an exit test's
child process is the barrier sequence (i.e. exactly those 32 bytes and
nothing else), we fail to trim it off. Fix it.

Resolves #1693.

### 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.
@grynspan grynspan added this to the Swift 6.3.2 milestone Apr 28, 2026
@grynspan grynspan self-assigned this Apr 28, 2026
@grynspan grynspan added bug 🪲 Something isn't working exit-tests ☠️ Work related to exit tests labels Apr 28, 2026
@grynspan grynspan merged commit 70eff26 into release/6.3 Apr 28, 2026
30 checks passed
@grynspan grynspan deleted the jgrynspan/1693-exit-test-off-by-one-barrier-6.3.2 branch April 28, 2026 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug 🪲 Something isn't working exit-tests ☠️ Work related to exit tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants