mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/lib/leakchecker.rb: Return false for no leaks.
Otherwise the GC could run for nothing. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3f2d575f8c
commit
c4dba39028
2 changed files with 6 additions and 1 deletions
|
@ -117,7 +117,7 @@ class LeakChecker
|
|||
end
|
||||
|
||||
def check_tempfile_leak(test_name)
|
||||
return false, @tempfile_info unless defined? Tempfile
|
||||
return false unless defined? Tempfile
|
||||
count1, initial_tempfiles = @tempfile_info
|
||||
count2, current_tempfiles = find_tempfiles(count1)
|
||||
leaked = false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue