ruby-changes:70128
From: Charles <ko1@a...>
Date: Thu, 9 Dec 2021 19:34:28 +0900 (JST)
Subject: [ruby-changes:70128] 080169147e (master): [ruby/open3] Use RbConfig's 'host_os'
https://git.ruby-lang.org/ruby.git/commit/?id=080169147e From 080169147e0607ea5a19ca9291e6642fe87c5321 Mon Sep 17 00:00:00 2001 From: Charles Oliver Nutter <headius@h...> Date: Thu, 30 Sep 2021 10:42:01 -0500 Subject: [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 --- test/test_open3.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_open3.rb b/test/test_open3.rb index 699b05a90c2..36ccd4c9e26 100644 --- a/test/test_open3.rb +++ b/test/test_open3.rb @@ -95,7 +95,7 @@ class TestOpen3 < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/test_open3.rb#L95 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]") -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/