mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
it may stuck with console on readline 5.1 + CentOS 5
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4c4347e698
commit
1a61e05d01
1 changed files with 4 additions and 1 deletions
|
@ -4,6 +4,7 @@ rescue LoadError
|
|||
else
|
||||
require "test/unit"
|
||||
require "tempfile"
|
||||
require "timeout"
|
||||
end
|
||||
|
||||
class TestReadline < Test::Unit::TestCase
|
||||
|
@ -398,7 +399,9 @@ class TestReadline < Test::Unit::TestCase
|
|||
w << "\cr\u3042\u3093"
|
||||
w.reopen(IO::NULL)
|
||||
assert_equal("\u3046\u3093", Readline.readline("", true), bug6602)
|
||||
assert_equal("\u3042\u3093", Readline.readline("", true), bug6602)
|
||||
Timeout.(2) do
|
||||
assert_equal("\u3042\u3093", Readline.readline("", true), bug6602)
|
||||
end
|
||||
assert_equal(nil, Readline.readline("", true), bug6602)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue