summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--test/lib/leakchecker.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b522299..c74ef0e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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]
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