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

ruby-changes:40253

From: naruse <ko1@a...>
Date: Thu, 29 Oct 2015 09:44:19 +0900 (JST)
Subject: [ruby-changes:40253] naruse:r52334 (trunk): wait until it escape handle_interrupt block

naruse	2015-10-29 09:44:13 +0900 (Thu, 29 Oct 2015)

  New Revision: 52334

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

  Log:
    wait until it escape handle_interrupt block

  Modified files:
    trunk/test/ruby/test_thread.rb
Index: test/ruby/test_thread.rb
===================================================================
--- test/ruby/test_thread.rb	(revision 52333)
+++ test/ruby/test_thread.rb	(revision 52334)
@@ -646,8 +646,8 @@ class TestThread < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_thread.rb#L646
           end
         }
       }
-      assert_raise(e) {r = :wait; sleep 1}
-      assert_raise(RuntimeError) {th.join(0)}
+      assert_raise(e) {r = :wait; sleep 0.2}
+      assert_raise(RuntimeError) {th.join(0.2)}
     ensure
       th.kill
     end

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

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