summaryrefslogtreecommitdiff
path: root/test/io
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-12-29 16:12:19 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-12-29 16:26:22 +0900
commit31e2f035121a4c07d6ea3b5eab69bc97749a022b (patch)
treea7bd4ff7dfc7350524091e522b165d86a7a330b9 /test/io
parente5c441a4a2885da61df9894ac17b69cb3c5811f2 (diff)
[ruby/io-console] Enable only interrupt bits on `intr: true`
https://github.com/ruby/io-console/commit/baaf929041
Diffstat (limited to 'test/io')
-rw-r--r--test/io/console/test_io_console.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb
index d71e42603f..77c6dac5a6 100644
--- a/test/io/console/test_io_console.rb
+++ b/test/io/console/test_io_console.rb
@@ -364,6 +364,11 @@ defined?(PTY) and defined?(IO.console) and TestIO_Console.class_eval do
assert_ctrl("#{cc.ord}", cc, r, w)
assert_ctrl("#{cc.ord}", cc, r, w)
end
+ if cc = ctrl["stop"]
+ assert_ctrl("#{cc.ord}", cc, r, w)
+ assert_ctrl("#{cc.ord}", cc, r, w)
+ assert_ctrl("#{cc.ord}", cc, r, w)
+ end
end
end