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

ruby-changes:54159

From: akr <ko1@a...>
Date: Thu, 13 Dec 2018 17:53:19 +0900 (JST)
Subject: [ruby-changes:54159] akr:r66380 (trunk): use :chdir option to avoid fd 3 to work with Windows.

akr	2018-12-13 17:53:15 +0900 (Thu, 13 Dec 2018)

  New Revision: 66380

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

  Log:
    use :chdir option to avoid fd 3 to work with Windows.

  Modified files:
    trunk/test/test_open3.rb
Index: test/test_open3.rb
===================================================================
--- test/test_open3.rb	(revision 66379)
+++ test/test_open3.rb	(revision 66380)
@@ -317,9 +317,8 @@ class TestOpen3 < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/test_open3.rb#L317
   end
 
   def test_integer_and_symbol_key
-    skip "passing FDs bigger than 2 is not supported on Windows" if /mswin|mingw/ =~ RUBY_PLATFORM
     command = [RUBY, '-e', 'puts "test_integer_and_symbol_key"']
-    out, status = Open3.capture2(*command, :in => IO::NULL, 3 => IO::NULL)
+    out, status = Open3.capture2(*command, :chdir => '.', 2 => IO::NULL)
     assert_equal("test_integer_and_symbol_key\n", out)
   end
 end

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

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