ruby-changes:52022
From: normal <ko1@a...>
Date: Thu, 9 Aug 2018 11:14:32 +0900 (JST)
Subject: [ruby-changes:52022] normal:r64238 (trunk): test/lib/leakchecker.rb (find_tempfiles): don't warn for missing files
normal 2018-08-09 11:14:27 +0900 (Thu, 09 Aug 2018) New Revision: 64238 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64238 Log: test/lib/leakchecker.rb (find_tempfiles): don't warn for missing files Quiet a false-positive warning from TestHtgroup#test_htgroup Modified files: trunk/test/lib/leakchecker.rb Index: test/lib/leakchecker.rb =================================================================== --- test/lib/leakchecker.rb (revision 64237) +++ test/lib/leakchecker.rb (revision 64238) @@ -128,7 +128,8 @@ class LeakChecker https://github.com/ruby/ruby/blob/trunk/test/lib/leakchecker.rb#L128 [prev_count, []] else tempfiles = ObjectSpace.each_object(Tempfile).find_all {|t| - t.instance_variable_defined?(:@tmpfile) and t.path + t.instance_variable_defined?(:@tmpfile) and t.path and + File.exist?(t.path) } [count, tempfiles] end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/