Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ jobs:
- name: Run test
run: rake # Attempting without 'bundle exec'
timeout-minutes: 3
env:
TESTOPTS: ${{ startsWith(matrix.ruby, 'jruby') && '--verbose=verbose' || '' }}
- id: build
run: |
rake build
Expand Down
5 changes: 2 additions & 3 deletions test/io/console/test_io_console.rb
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ def assert_ctrl(expect, cc, r, w)
w.print cc
w.flush
result = EnvUtil.timeout(3) {r.gets}
assert_not_nil(result)
if result
case cc.chr
when "\C-A".."\C-_"
Expand Down Expand Up @@ -572,7 +573,7 @@ def test_intr
if cc = ctrl["intr"]
assert_ctrl("#{cc.ord}", cc, r, w)
assert_ctrl("#{cc.ord}", cc, r, w)
assert_ctrl("Interrupt", cc, r, w) unless host_os?(/linux/)
assert_ctrl("Interrupt", cc, r, w) unless host_os?(/linux/) or RUBY_ENGINE == "jruby"
end
if cc = ctrl["dsusp"]
assert_ctrl("#{cc.ord}", cc, r, w)
Expand Down Expand Up @@ -631,8 +632,6 @@ def helper
end

def run_pty(src, n = 1)
pend("PTY.spawn cannot control terminal on JRuby") if RUBY_ENGINE == 'jruby'

args = [TestIO_Console::INCLUDE_OPTS, "-rio/console", "-e", src]
args.shift if args.first == "-I" # statically linked
r, w, pid = PTY.spawn(EnvUtil.rubybin, *args)
Expand Down