summaryrefslogtreecommitdiff
path: root/test/io/console/test_io_console.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-12-13 11:41:31 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-12-17 13:55:04 +0900
commit81eb2d16efcb29899e88e30a25ca5440195e2393 (patch)
tree7b6d93da4aac517a66f25477482fb3888d6a39f5 /test/io/console/test_io_console.rb
parentec89a0f8033215817d9c6f9300d9513178e785b7 (diff)
[ruby/io-console] Disable implementation-defined special control characters
In raw mode with interrupt enabled. https://github.com/ruby/io-console/commit/e9e8e3ff17
Diffstat (limited to 'test/io/console/test_io_console.rb')
-rw-r--r--test/io/console/test_io_console.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb
index eab0fb6c6d..765385df40 100644
--- a/test/io/console/test_io_console.rb
+++ b/test/io/console/test_io_console.rb
@@ -352,6 +352,16 @@ defined?(PTY) and defined?(IO.console) and TestIO_Console.class_eval do
assert_ctrl("#{cc.ord}", cc, r, w)
assert_ctrl("Interrupt", cc, r, w)
end
+ if cc = ctrl["dsusp"]
+ assert_ctrl("#{cc.ord}", cc, r, w)
+ assert_ctrl("#{cc.ord}", cc, r, w)
+ assert_ctrl("#{cc.ord}", cc, r, w)
+ end
+ if cc = ctrl["lnext"]
+ assert_ctrl("#{cc.ord}", cc, r, w)
+ assert_ctrl("#{cc.ord}", cc, r, w)
+ assert_ctrl("#{cc.ord}", cc, r, w)
+ end
end
end