Skip to content

Commit 2e0e012

Browse files
committed
Revert "Ignore ^C at interrupt"
This reverts commit f0646b2.
1 parent f0646b2 commit 2e0e012

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/io/console/test_io_console.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,6 @@ def assert_ctrl(expect, cc, r, w)
367367
w.print cc
368368
w.flush
369369
result = EnvUtil.timeout(3) {r.gets}
370-
result = yield result if defined?(yield)
371370
assert_equal(expect, result.chomp)
372371
end
373372

@@ -405,7 +404,7 @@ def test_intr
405404
if cc = ctrl["intr"]
406405
assert_ctrl("#{cc.ord}", cc, r, w)
407406
assert_ctrl("#{cc.ord}", cc, r, w)
408-
assert_ctrl("Interrupt", cc, r, w) {|res| res.sub("^C", "")} unless /linux/ =~ RUBY_PLATFORM
407+
assert_ctrl("Interrupt", cc, r, w) unless /linux/ =~ RUBY_PLATFORM
409408
end
410409
if cc = ctrl["dsusp"]
411410
assert_ctrl("#{cc.ord}", cc, r, w)

0 commit comments

Comments
 (0)