diff options
author | Charles Oliver Nutter <headius@headius.com> | 2021-09-30 10:42:01 -0500 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-12-09 19:28:54 +0900 |
commit | 080169147e0607ea5a19ca9291e6642fe87c5321 (patch) | |
tree | e0e6fe116248c14b850a6eae2c1367de8a9b4ca1 /test/test_open3.rb | |
parent | eb06b37c460a8237fd0f02a075307e1229b0359b (diff) |
[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
Diffstat (limited to 'test/test_open3.rb')
-rw-r--r-- | test/test_open3.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_open3.rb b/test/test_open3.rb index 699b05a90c..36ccd4c9e2 100644 --- a/test/test_open3.rb +++ b/test/test_open3.rb @@ -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]") |