mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
test/lib/leakchecker.rb (find_tempfiles): don't warn for missing files
Quiet a false-positive warning from TestHtgroup#test_htgroup git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
86f6fa45f8
commit
52102f6ff5
1 changed files with 2 additions and 1 deletions
|
@ -128,7 +128,8 @@ class LeakChecker
|
||||||
[prev_count, []]
|
[prev_count, []]
|
||||||
else
|
else
|
||||||
tempfiles = ObjectSpace.each_object(Tempfile).find_all {|t|
|
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]
|
[count, tempfiles]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue