1
0
Fork 0
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:
eregon 2015-06-13 19:41:25 +00:00
parent 3f2d575f8c
commit c4dba39028
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Sun Jun 14 04:34:14 2015 Benoit Daloze <eregontp@gmail.com>
* test/lib/leakchecker.rb: Return false for no leaks.
Otherwise the GC could run for nothing.
Sun Jun 14 04:15:40 2015 Benoit Daloze <eregontp@gmail.com>
* lib/delegate.rb: [DOC] Update SimpleDelegator example. [ci skip]

View file

@ -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