ruby-changes:34276
From: akr <ko1@a...>
Date: Thu, 5 Jun 2014 18:17:10 +0900 (JST)
Subject: [ruby-changes:34276] akr:r46357 (trunk): Join a thread.
akr 2014-06-05 18:16:57 +0900 (Thu, 05 Jun 2014) New Revision: 46357 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46357 Log: Join a thread. Modified files: trunk/test/io/nonblock/test_flush.rb Index: test/io/nonblock/test_flush.rb =================================================================== --- test/io/nonblock/test_flush.rb (revision 46356) +++ test/io/nonblock/test_flush.rb (revision 46357) @@ -29,7 +29,7 @@ class TestIONonblock < Test::Unit::TestC https://github.com/ruby/ruby/blob/trunk/test/io/nonblock/test_flush.rb#L29 w << "a" * 4096 result = "" timeout(10) { - Thread.new { + t0 = Thread.new { Thread.pass w.close } @@ -44,6 +44,7 @@ class TestIONonblock < Test::Unit::TestC https://github.com/ruby/ruby/blob/trunk/test/io/nonblock/test_flush.rb#L44 # ignore [ruby-dev:35638] end assert_nothing_raised {t.join} + t0.join } assert_equal(4097, result.size) true -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/