ruby-changes:46225
From: ko1 <ko1@a...>
Date: Fri, 14 Apr 2017 01:19:52 +0900 (JST)
Subject: [ruby-changes:46225] ko1:r58341 (trunk): Terminate created threads.
ko1 2017-04-14 01:19:46 +0900 (Fri, 14 Apr 2017) New Revision: 58341 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58341 Log: Terminate created threads. Added directories: trunk/enc/unicode/data/ Modified files: trunk/test/net/smtp/test_smtp.rb trunk/test/ruby/test_exception.rb Index: enc/unicode/data/9.0.0 =================================================================== --- enc/unicode/data/9.0.0 (nonexistent) +++ enc/unicode/data/9.0.0 (revision 58341) Property changes on: enc/unicode/data/9.0.0 ___________________________________________________________________ Added: svn:ignore ## -0,0 +1 ## +*.txt Index: test/net/smtp/test_smtp.rb =================================================================== --- test/net/smtp/test_smtp.rb (revision 58340) +++ test/net/smtp/test_smtp.rb (revision 58341) @@ -162,7 +162,7 @@ module Net https://github.com/ruby/ruby/blob/trunk/test/net/smtp/test_smtp.rb#L162 servers = Socket.tcp_server_sockets("localhost", 0) begin sock = nil - Thread.start do + t = Thread.start do sock = accept(servers) sock.close end @@ -176,6 +176,7 @@ module Net https://github.com/ruby/ruby/blob/trunk/test/net/smtp/test_smtp.rb#L176 ensure sock.close if sock servers.each(&:close) + t.join end end Index: test/ruby/test_exception.rb =================================================================== --- test/ruby/test_exception.rb (revision 58340) +++ test/ruby/test_exception.rb (revision 58341) @@ -727,6 +727,8 @@ end.join https://github.com/ruby/ruby/blob/trunk/test/ruby/test_exception.rb#L727 end end assert_nil(e.cause) + ensure + y.join end def test_cause_thread_with_cause -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/