diff options
Diffstat (limited to 'test/lib/leakchecker.rb')
-rw-r--r-- | test/lib/leakchecker.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/lib/leakchecker.rb b/test/lib/leakchecker.rb index 355f93dc79..c0cf718635 100644 --- a/test/lib/leakchecker.rb +++ b/test/lib/leakchecker.rb @@ -114,7 +114,9 @@ class LeakChecker if prev_count == count [prev_count, []] else - tempfiles = ObjectSpace.each_object(Tempfile).find_all {|t| t.path } + tempfiles = ObjectSpace.each_object(Tempfile).find_all {|t| + t.instance_variable_defined?(:@tmpfile) and t.path + } [count, tempfiles] end end |