summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-01-31 01:18:10 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-01-31 01:18:10 +0000
commitbef93a2ddf8e17bc636aef7719df56e4c722a722 (patch)
tree002216f856cbfa2ee3e08639272dd1d5374d7da1
parentba5aa6066869e80af71fddb0b42d31222f328c97 (diff)
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
-rw-r--r--test/ruby/test_io.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index 3cc410881c..9b0962f2a2 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -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