diff options
author | Charles Oliver Nutter <[email protected]> | 2021-02-03 17:30:00 -0600 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2021-02-05 12:01:38 +0900 |
commit | 2a764fe7644f839cec445d3467303543ad7a087b (patch) | |
tree | 93b6c26fefea8df6bb86308696732c2d50da9901 /test/io/console/test_io_console.rb | |
parent | 8960d6b5bdf8cffe01aa21bec17d8b889398acae (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/console/test_io_console.rb')
-rw-r--r-- | test/io/console/test_io_console.rb | 2 |
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 |