[前][次][番号順一覧][スレッド一覧]

ruby-changes:61270

From: Nobuyoshi <ko1@a...>
Date: Sat, 16 May 2020 17:36:55 +0900 (JST)
Subject: [ruby-changes:61270] 8c3a60df2a (master): leakchecker.rb: show test name

https://git.ruby-lang.org/ruby.git/commit/?id=8c3a60df2a

From 8c3a60df2a671a538f9f7aef57adaa77ec817de9 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sat, 16 May 2020 17:09:37 +0900
Subject: leakchecker.rb: show test name

When multiple autoclose IO objects are leaked too.

diff --git a/tool/lib/leakchecker.rb b/tool/lib/leakchecker.rb
index 7ed48ec..db274ca 100644
--- a/tool/lib/leakchecker.rb
+++ b/tool/lib/leakchecker.rb
@@ -118,7 +118,7 @@ class LeakChecker https://github.com/ruby/ruby/blob/trunk/tool/lib/leakchecker.rb#L118
         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
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]