[前][次][番号順一覧][スレッド一覧]

ruby-changes:73331

From: David <ko1@a...>
Date: Tue, 30 Aug 2022 18:46:21 +0900 (JST)
Subject: [ruby-changes:73331] b98653f766 (master): [rubygems/rubygems] Let `Dir.tmpdir` use the standard path

https://git.ruby-lang.org/ruby.git/commit/?id=b98653f766

From b98653f766613dbbaed02522af26f80078361502 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...>
Date: Tue, 30 Aug 2022 10:05:18 +0200
Subject: [rubygems/rubygems] Let `Dir.tmpdir` use the standard path

We're not fully in control of this folder, even when running our own
tests, because MJIT creates some temp folders there when invoking GC.

This bite tests running in ruby-core when making the behavior of
`FileUtils.rm_rf` more strict, because these extra files could not be
removed.

Since this was originally added due to some failures on systems with non
standard permissions on tmp folders, but I can no longer reproduce
those, I'll remove it.

https://github.com/rubygems/rubygems/commit/d2f21596ee
---
 test/rubygems/helper.rb | 2 --
 1 file changed, 2 deletions(-)

diff --git a/test/rubygems/helper.rb b/test/rubygems/helper.rb
index 37e113d3fc..e569986ef2 100644
--- a/test/rubygems/helper.rb
+++ b/test/rubygems/helper.rb
@@ -334,8 +334,6 @@ class Gem::TestCase < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/helper.rb#L334
     # capture output
     Gem::DefaultUserInteraction.ui = Gem::MockGemUi.new
 
-    ENV["TMPDIR"] = @tempdir
-
     @orig_SYSTEM_WIDE_CONFIG_FILE = Gem::ConfigFile::SYSTEM_WIDE_CONFIG_FILE
     Gem::ConfigFile.send :remove_const, :SYSTEM_WIDE_CONFIG_FILE
     Gem::ConfigFile.send :const_set, :SYSTEM_WIDE_CONFIG_FILE,
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]