diff options
author | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-13 19:41:25 +0000 |
---|---|---|
committer | eregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-13 19:41:25 +0000 |
commit | c4dba39028e1ab0cde9fe985ed8733617e697431 (patch) | |
tree | d152308fc3d44ee26eafae351937119ecb1ffb61 /test/lib | |
parent | 3f2d575f8c2f9b503afe733010041a55fd8baf37 (diff) |
* 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
Diffstat (limited to 'test/lib')
-rw-r--r-- | test/lib/leakchecker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/leakchecker.rb b/test/lib/leakchecker.rb index 24f19dec56..74244b33dc 100644 --- a/test/lib/leakchecker.rb +++ b/test/lib/leakchecker.rb @@ -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 |