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

ruby-changes:33908

From: naruse <ko1@a...>
Date: Sun, 18 May 2014 12:04:57 +0900 (JST)
Subject: [ruby-changes:33908] naruse:r45989 (trunk): output more verbose to debug

naruse	2014-05-18 12:04:52 +0900 (Sun, 18 May 2014)

  New Revision: 45989

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

  Log:
    output more verbose to debug
    
    following failure insists unexpected condition
    http://c5664.rubyci.org/~chkbuild/ruby-trunk/log/20140515T133301Z.diff.html.gz

  Modified files:
    trunk/test/ruby/test_thread.rb
Index: test/ruby/test_thread.rb
===================================================================
--- test/ruby/test_thread.rb	(revision 45988)
+++ test/ruby/test_thread.rb	(revision 45989)
@@ -792,12 +792,13 @@ _eom https://github.com/ruby/ruby/blob/trunk/test/ruby/test_thread.rb#L792
   end
 
   def test_main_thread_status_at_exit
-    assert_in_out_err([], <<-INPUT, %w(false), [])
+    assert_in_out_err([], <<-'INPUT', ["false false aborting"], [])
 Thread.new(Thread.current) {|mth|
   begin
     Thead.pass until mth.stop?
+    p :mth_stopped # don't run if killed by rb_thread_terminate_all
   ensure
-    p mth.alive?
+    puts "#{mth.alive?} #{mth.status} #{Thread.current.status}"
   end
 }
     INPUT

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

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