From 2a764fe7644f839cec445d3467303543ad7a087b Mon Sep 17 00:00:00 2001 From: Charles Oliver Nutter 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(+) (limited to 'test/io') diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb index 105afc1738..ccc9c7c786 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 end def test_cursor_position + return if RUBY_ENGINE == 'jruby' + run_pty("#{<<~"begin;"}\n#{<<~'end;'}") do |r, w, _| begin; con = IO.console -- cgit v1.2.3