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

ruby-changes:34043

From: akr <ko1@a...>
Date: Mon, 26 May 2014 08:00:25 +0900 (JST)
Subject: [ruby-changes:34043] akr:r46124 (trunk): * test/lib/minitest/unit.rb: Show Finished threads line-by-line.

akr	2014-05-26 08:00:04 +0900 (Mon, 26 May 2014)

  New Revision: 46124

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=46124

  Log:
    * test/lib/minitest/unit.rb: Show Finished threads line-by-line.

  Modified files:
    trunk/ChangeLog
    trunk/test/lib/minitest/unit.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 46123)
+++ ChangeLog	(revision 46124)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon May 26 07:59:34 2014  Tanaka Akira  <akr@f...>
+
+	* test/lib/minitest/unit.rb: Show Finished threads line-by-line.
+
 Mon May 26 01:39:02 2014  Zachary Scott  <e@z...>
 
 	* lib/csv.rb: Reject nil as data source for CSV.new, patch by @Peeja.
Index: test/lib/minitest/unit.rb
===================================================================
--- test/lib/minitest/unit.rb	(revision 46123)
+++ test/lib/minitest/unit.rb	(revision 46124)
@@ -969,8 +969,10 @@ module MiniTest https://github.com/ruby/ruby/blob/trunk/test/lib/minitest/unit.rb#L969
     def check_thread_leak(inst, live1, live2)
       thread_finished = live1 - live2
       if !thread_finished.empty?
-        list = thread_finished.map {|t| ' ' + t.inspect }.sort.join
-        puts "Finished threads: #{inst.class}\##{inst.__name__}:#{list}"
+        list = thread_finished.map {|t| t.inspect }.sort
+        list.each {|str|
+          puts "Finished thread: #{inst.class}\##{inst.__name__}: #{str}"
+        }
       end
       thread_retained = live2 - live1
       if !thread_retained.empty?

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

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