From 3dbd8d1f66537f968f0461ed8547460b3b1241b3 Mon Sep 17 00:00:00 2001 From: normal Date: Sat, 4 Aug 2018 20:34:19 +0000 Subject: 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 :< git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_io.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'test/ruby/test_io.rb') diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index 44f8391271..d6bdc7f811 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -3556,7 +3556,8 @@ __END__ 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__ 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 -- cgit v1.2.3