mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
32d6becbbb
commit
3dbd8d1f66
1 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue