mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
leakchecker.rb: show test name
When multiple autoclose IO objects are leaked too.
This commit is contained in:
parent
cc525d764b
commit
8c3a60df2a
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ class LeakChecker
|
|||
next if list.length <= 1
|
||||
if 1 < list.count {|io, autoclose, inspect| autoclose }
|
||||
str = list.map {|io, autoclose, inspect| " #{inspect}" + (autoclose ? "(autoclose)" : "") }.sort.join
|
||||
puts "Multiple autoclose IO object for a file descriptor:#{str}"
|
||||
puts "Multiple autoclose IO objects for a file descriptor in: #{test_name}: #{str}"
|
||||
end
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue