mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 20:19:19 +00:00
[ruby/open3] Use RbConfig's 'host_os'
RUBY_PLATFORM on JRuby is always 'java' so it does not indicate the host OS. https://github.com/ruby/open3/commit/d2308040e6
This commit is contained in:
parent
eb06b37c46
commit
080169147e
@ -95,7 +95,7 @@ class TestOpen3 < Test::Unit::TestCase
|
||||
end
|
||||
|
||||
def test_numeric_file_descriptor3
|
||||
skip "passing FDs bigger than 2 is not supported on Windows" if /mswin|mingw/ =~ RUBY_PLATFORM
|
||||
skip "passing FDs bigger than 2 is not supported on Windows" if /mswin|mingw/ =~ RbConfig::CONFIG['host_os']
|
||||
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]")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user