diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-12-29 16:12:19 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-12-29 16:26:22 +0900 |
commit | 31e2f035121a4c07d6ea3b5eab69bc97749a022b (patch) | |
tree | a7bd4ff7dfc7350524091e522b165d86a7a330b9 /test/io/console | |
parent | e5c441a4a2885da61df9894ac17b69cb3c5811f2 (diff) | |
download | ruby-31e2f035121a4c07d6ea3b5eab69bc97749a022b.tar.gz |
[ruby/io-console] Enable only interrupt bits on `intr: true`
https://github.com/ruby/io-console/commit/baaf929041
Diffstat (limited to 'test/io/console')
-rw-r--r-- | test/io/console/test_io_console.rb | 5 |
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 |