Skip to content

Commit d230804

Browse files
committed
Use RbConfig's 'host_os'
RUBY_PLATFORM on JRuby is always 'java' so it does not indicate the host OS.
1 parent 73f986c commit d230804

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_open3.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def test_numeric_file_descriptor2
9595
end
9696

9797
def test_numeric_file_descriptor3
98-
skip "passing FDs bigger than 2 is not supported on Windows" if /mswin|mingw/ =~ RUBY_PLATFORM
98+
skip "passing FDs bigger than 2 is not supported on Windows" if /mswin|mingw/ =~ RbConfig::CONFIG['host_os']
9999
with_pipe {|r, w|
100100
Open3.popen3(RUBY, '-e', 'IO.open(3).puts "foo"', 3 => w) {|i,o,e,t|
101101
assert_equal("foo\n", r.gets, "[GH-808] [ruby-core:67347] [Bug #10699]")

0 commit comments

Comments
 (0)