Skip to content
Merged
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
3 changes: 3 additions & 0 deletions Rakefile
Original file line numberDiff line numberDiff line change
Expand Up@@ -48,6 +48,9 @@ task "build" => %w[rdoc:coverage build:java]

task "build:java" => "date_epoch"

# For old the RDoc included with Ruby 2.6, which doesn't define this task.
task "rdoc:coverage"

# Keep RDoc::Task's coverage check from exiting the Rake process.
coverage_task = Rake::Task["rdoc:coverage"].actions.shift
task "rdoc:coverage" do |*t|
Expand Down
7 changes: 3 additions & 4 deletions test/io/console/test_io_console.rb
Original file line numberDiff line numberDiff line change
Expand Up@@ -211,7 +211,8 @@ def test_noecho
s.noecho {
assert_not_send([s, :echo?])
m.print "a"
sleep 0.1
m.flush
assert_equal("a", s.getch)
}
m.print "b"
assert_equal("b", m.readpartial(10))
Expand DownExpand Up@@ -309,8 +310,6 @@ def test_console_mode
end

def test_stty_redirect_stdout
omit unless IO.private_method_defined?(:_io_console_stty)

helper do |_, s|
stdout = STDOUT.dup
begin
Expand All@@ -322,7 +321,7 @@ def test_stty_redirect_stdout
end
assert_not_empty(mode)
end
end
end if IO.private_method_defined?(:_io_console_stty)

def test_tty_on_pty
pend "not supported" unless TTY_ENHANCED
Expand Down
Loading