diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-13 08:53:15 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-12-13 08:53:15 +0000 |
commit | 608310d6ffc6284ada059c074d9be390c72df556 (patch) | |
tree | d63476f34e50e5d8ab7727c332e832afe0785383 /test/test_open3.rb | |
parent | 690fd7633cf2c8b655e0522d1ccf78924b6f74d5 (diff) | |
download | ruby-608310d6ffc6284ada059c074d9be390c72df556.tar.gz |
use :chdir option to avoid fd 3 to work with Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/test_open3.rb')
-rw-r--r-- | test/test_open3.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/test_open3.rb b/test/test_open3.rb index c91e69d9dd..6842ac8d8c 100644 --- a/test/test_open3.rb +++ b/test/test_open3.rb @@ -317,9 +317,8 @@ class TestOpen3 < Test::Unit::TestCase 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 |