Skip to content

Conversation

@nobu
Copy link
Member

@nobu nobu commented Sep 23, 2025

What was the end-user or developer problem that led to this PR?

Tests should not pollute the source directory by temporary files.

What is your fix for the problem, implemented in this PR?

Respect the TMPDIR environment variable set by the ruby core test runner.

Make sure the following tasks are checked


def tmp_root
source_root.join("tmp")
ruby_core? && (tmpdir = ENV["TMPDIR"]) ? Pathname(tmpdir) : source_root.join("tmp")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is ruby_core? needed? Not possible to just respect ENV["TMPDIR"] if present?

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.

2 participants