File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ def tmp(*path)
114114 end
115115
116116 def tmp_root
117- source_root . join ( "tmp" )
117+ ruby_core? && ( tmpdir = ENV [ "TMPDIR" ] ) ? Pathname ( tmpdir ) : source_root . join ( "tmp" )
118118 end
119119
120120 # Bump this version whenever you make a breaking change to the spec setup
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ def test_setup
4343 # sign extension bundles on macOS, to avoid trying to find the specified key
4444 # from the fake $HOME/Library/Keychains directory.
4545 ENV . delete "RUBY_CODESIGN"
46- ENV [ "TMPDIR" ] = Path . tmpdir . to_s
46+ ENV [ "TMPDIR" ] = Path . tmpdir . to_s unless Path . ruby_core?
4747
4848 require "rubygems/user_interaction"
4949 Gem ::DefaultUserInteraction . ui = Gem ::SilentUI . new
You can’t perform that action at this time.
0 commit comments