ruby-changes:51969
From: normal <ko1@a...>
Date: Sun, 5 Aug 2018 05:34:26 +0900 (JST)
Subject: [ruby-changes:51969] normal:r64184 (trunk): test/ruby/test_io.rb (test_race_gets_and_close): timeout each thread
normal 2018-08-05 05:34:19 +0900 (Sun, 05 Aug 2018) New Revision: 64184 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64184 Log: test/ruby/test_io.rb (test_race_gets_and_close): timeout each thread Still looking into CI failures on P895 (and seemingly no other boxes): http://ci.rvm.jp/results/trunk@P895/1190369 :< Modified files: trunk/test/ruby/test_io.rb Index: test/ruby/test_io.rb =================================================================== --- test/ruby/test_io.rb (revision 64183) +++ test/ruby/test_io.rb (revision 64184) @@ -3556,7 +3556,8 @@ __END__ https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L3556 end if File::BINARY != 0 def test_race_gets_and_close - assert_separately([], "#{<<-"begin;"}\n#{<<-"end;"}", signal: :ABRT) + opt = { signal: :ABRT, timeout: 200 } + assert_separately([], "#{<<-"begin;"}\n#{<<-"end;"}", opt) bug13076 = '[ruby-core:78845] [Bug #13076]' begin; 10.times do |i| @@ -3578,9 +3579,9 @@ __END__ https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L3579 w.close r.close end - assert_nothing_raised(IOError, bug13076) { - t.each(&:join) - } + t.each do |th| + assert_same(th, th.join(2), bug13076) + end end end; end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/