From b98653f766613dbbaed02522af26f80078361502 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= 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(-) (limited to 'test') 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 # 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.3