summaryrefslogtreecommitdiff
path: root/test/ruby/test_jit.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2020-11-26 19:23:34 -0800
committerTakashi Kokubun <[email protected]>2020-11-26 19:23:35 -0800
commit1898e9558a55fa2558fb52d63bbb30bd8c513e50 (patch)
tree4c9267631d794f140681f20da62a13086af7fe25 /test/ruby/test_jit.rb
parentf5ca3ff4dbcf5c140a77d1de5ff3fe3eed2d558d (diff)
Always clean up leftovers at ci.rvm.jp
to prevent failures like http://ci.rvm.jp/logfiles/brlog.trunk-mjit.20201126-182515. Since fa1250a506e9b6a1bcbf664f6b7b9c06e045d9b9, it should be safe to do this.
Diffstat (limited to 'test/ruby/test_jit.rb')
-rw-r--r--test/ruby/test_jit.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb
index c0cc28fb42..e5e8293c45 100644
--- a/test/ruby/test_jit.rb
+++ b/test/ruby/test_jit.rb
@@ -45,10 +45,8 @@ class TestJIT < Test::Unit::TestCase
# ci.rvm.jp caches its build environment. Clean up temporary files left by SEGV.
if ENV['RUBY_DEBUG']&.include?('ci')
Dir.glob("#{ENV.fetch('TMPDIR', '/tmp')}/_ruby_mjit_p*u*.*").each do |file|
- if File.mtime(file) < Time.now - 60 * 60 * 24
- puts "test/ruby/test_jit.rb: removing #{file}"
- File.unlink(file)
- end
+ puts "test/ruby/test_jit.rb: removing #{file}"
+ File.unlink(file)
end
end