summaryrefslogtreecommitdiff
path: root/test/lib/leakchecker.rb
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-13 19:41:25 +0000
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-13 19:41:25 +0000
commitc4dba39028e1ab0cde9fe985ed8733617e697431 (patch)
treed152308fc3d44ee26eafae351937119ecb1ffb61 /test/lib/leakchecker.rb
parent3f2d575f8c2f9b503afe733010041a55fd8baf37 (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/leakchecker.rb')
-rw-r--r--test/lib/leakchecker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/leakchecker.rb b/test/lib/leakchecker.rb
index 24f19de..74244b3 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