зеркало из https://github.com/github/ruby.git
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:
Родитель
4c4347e698
Коммит
1a61e05d01
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче