summaryrefslogtreecommitdiff
path: root/test/io
diff options
context:
space:
mode:
authorCharles Oliver Nutter <headius@headius.com>2021-02-03 17:30:00 -0600
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-02-05 12:01:38 +0900
commit2a764fe7644f839cec445d3467303543ad7a087b (patch)
tree93b6c26fefea8df6bb86308696732c2d50da9901 /test/io
parent8960d6b5bdf8cffe01aa21bec17d8b889398acae (diff)
[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
Diffstat (limited to 'test/io')
-rw-r--r--test/io/console/test_io_console.rb2
1 files changed, 2 insertions, 0 deletions
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