Skip to content

Conversation

emilazy
Copy link

@emilazy emilazy commented Sep 15, 2025

This is more consistent and makes tests using output capture behave as expected in environments with custom values of $TEST_TMPDIR or $TMPDIR, including fixing them in ones where /tmp may not be accessible, such as sandboxed build environments on macOS.

We can drop `EndsWithPathSeparator()` because `TempDir()` provides this
as an API contract. We prefer `$TEST_TMPDIR` when set for consistency
with other platforms.
This is more consistent and makes tests using output capture behave
as expected in environments with custom values of `$TEST_TMPDIR`
or `$TMPDIR`, including fixing them in ones where `/tmp` may not be
accessible, such as sandboxed build environments on macOS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant