ruby-changes:36145
From: akr <ko1@a...>
Date: Sat, 1 Nov 2014 22:29:22 +0900 (JST)
Subject: [ruby-changes:36145] akr:r48226 (trunk): refine message of assert_join_threads.
akr 2014-11-01 22:29:18 +0900 (Sat, 01 Nov 2014) New Revision: 48226 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48226 Log: refine message of assert_join_threads. Modified files: trunk/test/ruby/envutil.rb Index: test/ruby/envutil.rb =================================================================== --- test/ruby/envutil.rb (revision 48225) +++ test/ruby/envutil.rb (revision 48226) @@ -533,10 +533,11 @@ eom https://github.com/ruby/ruby/blob/trunk/test/ruby/envutil.rb#L533 end end if !errs.empty? - msg = errs.map {|t, err| + msg = "exceptions on #{errs.length} threads:\n" + + errs.map {|t, err| + "#{t.inspect}:\n" + err.backtrace.map.with_index {|line, i| if i == 0 - "#{t.inspect}:\n" + "#{line}: #{err.message} (#{err.class})" else "\tfrom #{line}" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/