mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_io.rb: separate a test
* test/ruby/test_io.rb (test_closed_stream_in_rescue): run in a separated process. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ba5aa60668
commit
bef93a2ddf
1 changed files with 3 additions and 0 deletions
|
@ -3486,6 +3486,8 @@ __END__
|
|||
end
|
||||
|
||||
def test_closed_stream_in_rescue
|
||||
assert_separately([], "#{<<-"begin;"}\n#{<<~"end;"}")
|
||||
begin;
|
||||
10.times do
|
||||
assert_nothing_raised(RuntimeError, /frozen IOError/) do
|
||||
IO.pipe do |r, w|
|
||||
|
@ -3503,6 +3505,7 @@ __END__
|
|||
end
|
||||
end
|
||||
end
|
||||
end;
|
||||
end
|
||||
|
||||
def test_write_no_garbage
|
||||
|
|
Loading…
Add table
Reference in a new issue