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

ruby-changes:40385

From: hsbt <ko1@a...>
Date: Fri, 6 Nov 2015 20:18:45 +0900 (JST)
Subject: [ruby-changes:40385] hsbt:r52466 (trunk): * test/runner.rb: extracted test helper.

hsbt	2015-11-06 20:18:30 +0900 (Fri, 06 Nov 2015)

  New Revision: 52466

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

  Log:
    * test/runner.rb: extracted test helper.
    * test/lib/zombie_hunter.rb: ditto.

  Added files:
    trunk/test/lib/zombie_hunter.rb
  Modified files:
    trunk/ChangeLog
    trunk/test/runner.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52465)
+++ ChangeLog	(revision 52466)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Nov  6 20:18:25 2015  SHIBATA Hiroshi  <hsbt@r...>
+
+	* test/runner.rb: extracted test helper.
+	* test/lib/zombie_hunter.rb: ditto.
+
 Fri Nov  6 18:07:47 2015  Naohisa Goto  <ngotogenome@g...>
 
 	* include/ruby/ruby.h (rb_array_const_ptr, rb_struct_const_ptr):
Index: test/runner.rb
===================================================================
--- test/runner.rb	(revision 52465)
+++ test/runner.rb	(revision 52466)
@@ -21,19 +21,7 @@ ENV["GEM_SKIP"] = ENV["GEM_HOME"] = ENV[ https://github.com/ruby/ruby/blob/trunk/test/runner.rb#L21
 
 require_relative 'lib/profile_test_all' if ENV.has_key?('RUBY_TEST_ALL_PROFILE')
 require_relative 'lib/tracepointchecker'
-
-module Test::Unit
-  module ZombieHunter
-    def after_teardown
-      super
-      assert_empty(Process.waitall)
-    end
-  end
-
-  class TestCase
-    include ZombieHunter
-  end
-end
+require_relative 'lib/zombie_hunter'
 
 if ENV['COVERAGE']
   $LOAD_PATH.unshift "#{src_testdir}/../coverage/simplecov/lib"
Index: test/lib/zombie_hunter.rb
===================================================================
--- test/lib/zombie_hunter.rb	(revision 0)
+++ test/lib/zombie_hunter.rb	(revision 52466)
@@ -0,0 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/test/lib/zombie_hunter.rb#L1
+module ZombieHunter
+  def after_teardown
+    super
+    assert_empty(Process.waitall)
+  end
+end
+
+Test::Unit::TestCase.include ZombieHunter

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

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