[前][次][番号順一覧][スレッド一覧]

ruby-changes:45401

From: nobu <ko1@a...>
Date: Tue, 31 Jan 2017 10:18:15 +0900 (JST)
Subject: [ruby-changes:45401] nobu:r57474 (trunk): test_io.rb: separate a test

nobu	2017-01-31 10:18:10 +0900 (Tue, 31 Jan 2017)

  New Revision: 57474

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57474

  Log:
    test_io.rb: separate a test
    
    * test/ruby/test_io.rb (test_closed_stream_in_rescue): run in a
      separated process.

  Modified files:
    trunk/test/ruby/test_io.rb
Index: test/ruby/test_io.rb
===================================================================
--- test/ruby/test_io.rb	(revision 57473)
+++ test/ruby/test_io.rb	(revision 57474)
@@ -3486,6 +3486,8 @@ __END__ https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L3486
     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__ https://github.com/ruby/ruby/blob/trunk/test/ruby/test_io.rb#L3505
           end
         end
       end
+      end;
     end
 
     def test_write_no_garbage

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]