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

ruby-changes:14862

From: akr <ko1@a...>
Date: Mon, 22 Feb 2010 21:35:06 +0900 (JST)
Subject: [ruby-changes:14862] Ruby:r26729 (trunk): don't use infinite loop.

akr	2010-02-22 21:34:54 +0900 (Mon, 22 Feb 2010)

  New Revision: 26729

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

  Log:
    don't use infinite loop.

  Modified files:
    trunk/test/ruby/test_beginendblock.rb

Index: test/ruby/test_beginendblock.rb
===================================================================
--- test/ruby/test_beginendblock.rb	(revision 26728)
+++ test/ruby/test_beginendblock.rb	(revision 26729)
@@ -97,8 +97,8 @@
     out = IO.popen(
       [ruby,
        '-e', 'STDERR.reopen(STDOUT)',
-       '-e', 'at_exit{Process.kill(:INT, $$); loop{}}']) {|f|
-      timeout(1) {
+       '-e', 'at_exit{Process.kill(:INT, $$); sleep 5 }']) {|f|
+      timeout(10) {
         f.read
       }
     }

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

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