1
0
Fork 0
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:
Nobuyoshi Nakada 2020-05-16 17:09:37 +09:00
parent cc525d764b
commit 8c3a60df2a
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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