mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* lib/open3.rb: Open3 properly passes non-keyword hash args to spawn.
Fixed by Josh Cheek. [Fix GH-808] Related to [ruby-core:67347] [Bug #10699] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
48ad25568f
commit
1ade9cad02
3 changed files with 15 additions and 0 deletions
|
@ -80,6 +80,14 @@ class TestOpen3 < Test::Unit::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
def test_numeric_file_descriptors
|
||||
with_pipe { |r, w|
|
||||
Open3.popen3(RUBY, '-e', 'IO.open(3).puts "foo"', 3 => w) {|i,o,e,t|
|
||||
assert_equal("foo\n", r.gets, "[GH-808] [ruby-core:67347] [Bug #10699]")
|
||||
}
|
||||
}
|
||||
end
|
||||
|
||||
def with_pipe
|
||||
r, w = IO.pipe
|
||||
yield r, w
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue