Skip to content
Merged
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
6 changes: 5 additions & 1 deletion test/io/console/test_io_console.rb
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,10 @@ def test_intr
end
end

def test_getch_timeout
assert_equal(["nil"], run_pty("p IO.console.getch(intr: true, time: 0.1, min: 0)"))
end

unless IO.console
def test_close
assert_equal(["true"], run_pty("IO.console.close; p IO.console.fileno >= 0"))
Expand Down Expand Up @@ -719,7 +723,7 @@ def test_sync

def test_getch_timeout
assert_nil(IO.console.getch(intr: true, time: 0.1, min: 0))
end
end if ENV["CI"]

def test_ttyname
return unless IO.method_defined?(:ttyname)
Expand Down
Loading