mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
690fd7633c
commit
608310d6ff
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue