1
0
Fork 0
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:
naruse 2013-07-23 16:17:58 +00:00
parent 4c4347e698
commit 1a61e05d01

View file

@ -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