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

ruby-changes:29361

From: nobu <ko1@a...>
Date: Wed, 19 Jun 2013 16:47:17 +0900 (JST)
Subject: [ruby-changes:29361] nobu:r41413 (trunk): test/runner.rb: reap zombies

nobu	2013-06-19 16:47:07 +0900 (Wed, 19 Jun 2013)

  New Revision: 41413

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

  Log:
    test/runner.rb: reap zombies
    
    * test/runner.rb (Test::Unit::ZombieHunter#after_teardown): reap zombies.

  Modified files:
    trunk/test/runner.rb

Index: test/runner.rb
===================================================================
--- test/runner.rb	(revision 41412)
+++ test/runner.rb	(revision 41413)
@@ -14,4 +14,16 @@ ENV["GEM_SKIP"] = ENV["GEM_HOME"] = ENV[ https://github.com/ruby/ruby/blob/trunk/test/runner.rb#L14
 
 require_relative 'profile_test_all' if ENV['RUBY_TEST_ALL_PROFILE'] == 'true'
 
+module Test::Unit
+  module ZombieHunter
+    def after_teardown
+      super
+      assert_empty(Process.waitall)
+    end
+  end
+  class TestCase
+    include ZombieHunter
+  end
+end
+
 exit Test::Unit::AutoRunner.run(true, src_testdir)

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

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