[前][次][番号順一覧][スレッド一覧]

ruby-changes:30090

From: naruse <ko1@a...>
Date: Wed, 24 Jul 2013 01:18:08 +0900 (JST)
Subject: [ruby-changes:30090] naruse:r42142 (trunk): it may stuck with console on readline 5.1 + CentOS 5

naruse	2013-07-24 01:17:58 +0900 (Wed, 24 Jul 2013)

  New Revision: 42142

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42142

  Log:
    it may stuck with console on readline 5.1 + CentOS 5

  Modified files:
    trunk/test/readline/test_readline.rb

Index: test/readline/test_readline.rb
===================================================================
--- test/readline/test_readline.rb	(revision 42141)
+++ test/readline/test_readline.rb	(revision 42142)
@@ -4,6 +4,7 @@ rescue LoadError https://github.com/ruby/ruby/blob/trunk/test/readline/test_readline.rb#L4
 else
   require "test/unit"
   require "tempfile"
+  require "timeout"
 end
 
 class TestReadline < Test::Unit::TestCase
@@ -398,7 +399,9 @@ class TestReadline < Test::Unit::TestCas https://github.com/ruby/ruby/blob/trunk/test/readline/test_readline.rb#L399
         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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]