ruby-changes:35096
From: nobu <ko1@a...>
Date: Thu, 14 Aug 2014 11:27:10 +0900 (JST)
Subject: [ruby-changes:35096] nobu:r47178 (trunk): test_io.rb: investigation
nobu 2014-08-14 11:26:56 +0900 (Thu, 14 Aug 2014) New Revision: 47178 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47178 Log: test_io.rb: investigation * test/ruby/test_io.rb (test_readpartial_locktmp): check if the reader thread is alive before write. Modified files: trunk/test/ruby/test_io.rb Index: test/ruby/test_io.rb =================================================================== --- test/ruby/test_io.rb (revision 47177) +++ test/ruby/test_io.rb (revision 47178) @@ -2862,9 +2862,10 @@ End https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L2862 Thread.pass until th.stop? buf.replace("") assert_empty(buf, bug6099) + th.join rescue ($@.concat(caller); raise) unless th.alive? w.write(data) Thread.pass while th.alive? - th.join + th.join rescue ($@.concat(caller); raise) end assert_equal(data, buf, bug6099) rescue RuntimeError # can't modify string; temporarily locked -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/