From 31e2f035121a4c07d6ea3b5eab69bc97749a022b Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 29 Dec 2019 16:12:19 +0900 Subject: [ruby/io-console] Enable only interrupt bits on `intr: true` https://github.com/ruby/io-console/commit/baaf929041 --- test/io/console/test_io_console.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/io') 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 -- cgit v1.2.3