leakchecker.rb: show test name
When multiple autoclose IO objects are leaked too.
This commit is contained in:
parent
cc525d764b
commit
8c3a60df2a
@ -118,7 +118,7 @@ class LeakChecker
|
|||||||
next if list.length <= 1
|
next if list.length <= 1
|
||||||
if 1 < list.count {|io, autoclose, inspect| autoclose }
|
if 1 < list.count {|io, autoclose, inspect| autoclose }
|
||||||
str = list.map {|io, autoclose, inspect| " #{inspect}" + (autoclose ? "(autoclose)" : "") }.sort.join
|
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
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user