ruby-changes:65149
From: Charles <ko1@a...>
Date: Fri, 5 Feb 2021 12:30:53 +0900 (JST)
Subject: [ruby-changes:65149] 2a764fe764 (master): [ruby/io-console] Skip test on JRuby
https://git.ruby-lang.org/ruby.git/commit/?id=2a764fe764 From 2a764fe7644f839cec445d3467303543ad7a087b Mon Sep 17 00:00:00 2001 From: Charles Oliver Nutter <headius@h...> Date: Wed, 3 Feb 2021 17:30:00 -0600 Subject: [ruby/io-console] Skip test on JRuby The subprocess script here works fine at a command line, but when run as a pty subprocess during the tests the master side hangs waiting for output. https://github.com/ruby/io-console/commit/4a21610ece --- test/io/console/test_io_console.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb index 105afc1..ccc9c7c 100644 --- a/test/io/console/test_io_console.rb +++ b/test/io/console/test_io_console.rb @@ -323,6 +323,8 @@ defined?(PTY) and defined?(IO.console) and TestIO_Console.class_eval do https://github.com/ruby/ruby/blob/trunk/test/io/console/test_io_console.rb#L323 end def test_cursor_position + return if RUBY_ENGINE == 'jruby' + run_pty("#{<<~"begin;"}\n#{<<~'end;'}") do |r, w, _| begin; con = IO.console -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/