diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2025-06-27 16:20:38 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-06-27 07:23:09 +0000 |
| commit | 495613ffd3f1c1008e1d16515a52817b188e091d (patch) | |
| tree | c22b932e16c8417ef0857144502a94932166f93f | |
| parent | 7ce339244953a6c3add543854292c61e9f5bc14b (diff) | |
[ruby/io-console] Revert "Ignore `^C` at interrupt"
This reverts commit https://github.com/ruby/io-console/commit/f0646b2b6ae3.
https://github.com/ruby/io-console/commit/2e0e01263a
| -rw-r--r-- | test/io/console/test_io_console.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb index c769e0917b..deeedf01f3 100644 --- a/test/io/console/test_io_console.rb +++ b/test/io/console/test_io_console.rb @@ -367,7 +367,6 @@ defined?(PTY) and defined?(IO.console) and TestIO_Console.class_eval do w.print cc w.flush result = EnvUtil.timeout(3) {r.gets} - result = yield result if defined?(yield) assert_equal(expect, result.chomp) end @@ -405,7 +404,7 @@ defined?(PTY) and defined?(IO.console) and TestIO_Console.class_eval do if cc = ctrl["intr"] assert_ctrl("#{cc.ord}", cc, r, w) assert_ctrl("#{cc.ord}", cc, r, w) - assert_ctrl("Interrupt", cc, r, w) {|res| res.sub("^C", "")} unless /linux/ =~ RUBY_PLATFORM + assert_ctrl("Interrupt", cc, r, w) unless /linux/ =~ RUBY_PLATFORM end if cc = ctrl["dsusp"] assert_ctrl("#{cc.ord}", cc, r, w) |
