ruby-changes:34860
From: nobu <ko1@a...>
Date: Fri, 25 Jul 2014 16:55:44 +0900 (JST)
Subject: [ruby-changes:34860] nobu:r46943 (trunk): test_gem_remote_fetcher.rb: fix leaked FDs
nobu 2014-07-25 16:55:30 +0900 (Fri, 25 Jul 2014) New Revision: 46943 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46943 Log: test_gem_remote_fetcher.rb: fix leaked FDs * test/rubygems/test_gem_remote_fetcher.rb (start_server): shutdown remote servers. * test/rubygems/test_gem_remote_fetcher.rb (start_ssl_server): ditto. Modified files: trunk/test/rubygems/test_gem_remote_fetcher.rb Index: test/rubygems/test_gem_remote_fetcher.rb =================================================================== --- test/rubygems/test_gem_remote_fetcher.rb (revision 46942) +++ test/rubygems/test_gem_remote_fetcher.rb (revision 46943) @@ -771,6 +771,8 @@ gems: https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_remote_fetcher.rb#L771 rescue Exception => ex abort ex.message puts "ERROR during server thread: #{ex.message}" + ensure + server.shutdown end end while server.status != :Running @@ -822,6 +824,8 @@ gems: https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_remote_fetcher.rb#L824 s.start rescue Exception => ex abort "ERROR during server thread: #{ex.message}" + ensure + s.shutdown end end th[:server] = s -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/