ruby-changes:38798
From: eregon <ko1@a...>
Date: Sun, 14 Jun 2015 04:41:45 +0900 (JST)
Subject: [ruby-changes:38798] eregon:r50879 (trunk): * test/lib/leakchecker.rb: Return false for no leaks.
eregon 2015-06-14 04:41:25 +0900 (Sun, 14 Jun 2015) New Revision: 50879 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50879 Log: * test/lib/leakchecker.rb: Return false for no leaks. Otherwise the GC could run for nothing. Modified files: trunk/ChangeLog trunk/test/lib/leakchecker.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 50878) +++ ChangeLog (revision 50879) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sun Jun 14 04:34:14 2015 Benoit Daloze <eregontp@g...> + + * 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@g...> * lib/delegate.rb: [DOC] Update SimpleDelegator example. [ci skip] Index: test/lib/leakchecker.rb =================================================================== --- test/lib/leakchecker.rb (revision 50878) +++ test/lib/leakchecker.rb (revision 50879) @@ -117,7 +117,7 @@ class LeakChecker https://github.com/ruby/ruby/blob/trunk/test/lib/leakchecker.rb#L117 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/