diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-14 22:59:57 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-08-14 22:59:57 +0000 |
commit | 7d664ecc49c47b1880e0966ee032f07e89467ea1 (patch) | |
tree | 53f5511818d2e00c1692a90ee45283101a6dccdd /test/lib | |
parent | 635294038ba5164f86def135993f015eeb6cb548 (diff) |
Revert "test/lib/leakchecker.rb (find_tempfiles): don't warn for missing files"
This reverts commit 52102f6ff50eebf8c16667c9b49cef579d2057c1 (r64238).
It is no longer necessary if we use Tempfile.create in
WEBrick::HTTPAuth::Htgroup#flush (see next commit)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/lib')
-rw-r--r-- | test/lib/leakchecker.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/lib/leakchecker.rb b/test/lib/leakchecker.rb index d37f865883..af9200bf77 100644 --- a/test/lib/leakchecker.rb +++ b/test/lib/leakchecker.rb @@ -128,8 +128,7 @@ class LeakChecker [prev_count, []] else tempfiles = ObjectSpace.each_object(Tempfile).find_all {|t| - t.instance_variable_defined?(:@tmpfile) and t.path and - File.exist?(t.path) + t.instance_variable_defined?(:@tmpfile) and t.path } [count, tempfiles] end |